SConstruct (12305:b6ebf3d20329) | SConstruct (12485:cf80a4255d6e) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 800 unchanged lines hidden (view full) --- 809 "installing tcmalloc (libgoogle-perftools-dev package "\ 810 "on Ubuntu or RedHat)." + termcap.Normal 811 812 813# Detect back trace implementations. The last implementation in the 814# list will be used by default. 815backtrace_impls = [ "none" ] 816 | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015-2017 ARM Limited 4# All rights reserved. 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating --- 800 unchanged lines hidden (view full) --- 809 "installing tcmalloc (libgoogle-perftools-dev package "\ 810 "on Ubuntu or RedHat)." + termcap.Normal 811 812 813# Detect back trace implementations. The last implementation in the 814# list will be used by default. 815backtrace_impls = [ "none" ] 816 |
817if conf.CheckLibWithHeader(None, 'execinfo.h', 'C', 818 'backtrace_symbols_fd((void*)0, 0, 0);'): | 817backtrace_checker = 'char temp;' + \ 818 ' backtrace_symbols_fd((void*)&temp, 0, 0);' 819if conf.CheckLibWithHeader(None, 'execinfo.h', 'C', backtrace_checker): |
819 backtrace_impls.append("glibc") 820elif conf.CheckLibWithHeader('execinfo', 'execinfo.h', 'C', | 820 backtrace_impls.append("glibc") 821elif conf.CheckLibWithHeader('execinfo', 'execinfo.h', 'C', |
821 'backtrace_symbols_fd((void*)0, 0, 0);'): | 822 backtrace_checker): |
822 # NetBSD and FreeBSD need libexecinfo. 823 backtrace_impls.append("glibc") 824 main.Append(LIBS=['execinfo']) 825 826if backtrace_impls[-1] == "none": 827 default_backtrace_impl = "none" 828 print termcap.Yellow + termcap.Bold + \ 829 "No suitable back trace implementation found." + \ --- 433 unchanged lines hidden --- | 823 # NetBSD and FreeBSD need libexecinfo. 824 backtrace_impls.append("glibc") 825 main.Append(LIBS=['execinfo']) 826 827if backtrace_impls[-1] == "none": 828 default_backtrace_impl = "none" 829 print termcap.Yellow + termcap.Bold + \ 830 "No suitable back trace implementation found." + \ --- 433 unchanged lines hidden --- |