SConstruct (11798:e034a4566653) SConstruct (11811:83677ded6358)
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 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

--- 641 unchanged lines hidden (view full) ---

650 main.Append(CCFLAGS=['-pipe'])
651 main.Append(CCFLAGS=['-fno-strict-aliasing'])
652 # Enable -Wall and -Wextra and then disable the few warnings that
653 # we consistently violate
654 main.Append(CCFLAGS=['-Wall', '-Wundef', '-Wextra',
655 '-Wno-sign-compare', '-Wno-unused-parameter'])
656 # We always compile using C++11
657 main.Append(CXXFLAGS=['-std=c++11'])
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 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

--- 641 unchanged lines hidden (view full) ---

650 main.Append(CCFLAGS=['-pipe'])
651 main.Append(CCFLAGS=['-fno-strict-aliasing'])
652 # Enable -Wall and -Wextra and then disable the few warnings that
653 # we consistently violate
654 main.Append(CCFLAGS=['-Wall', '-Wundef', '-Wextra',
655 '-Wno-sign-compare', '-Wno-unused-parameter'])
656 # We always compile using C++11
657 main.Append(CXXFLAGS=['-std=c++11'])
658 if sys.platform.startswith('freebsd'):
659 main.Append(CCFLAGS=['-I/usr/local/include'])
660 main.Append(CXXFLAGS=['-I/usr/local/include'])
658else:
659 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
660 print "Don't know what compiler options to use for your compiler."
661 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
662 print termcap.Yellow + ' version:' + termcap.Normal,
663 if not CXX_version:
664 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
665 termcap.Normal

--- 100 unchanged lines hidden (view full) ---

766 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin'])
767
768 # On Mac OS X/Darwin we need to also use libc++ (part of XCode) as
769 # opposed to libstdc++, as the later is dated.
770 if sys.platform == "darwin":
771 main.Append(CXXFLAGS=['-stdlib=libc++'])
772 main.Append(LIBS=['c++'])
773
661else:
662 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
663 print "Don't know what compiler options to use for your compiler."
664 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
665 print termcap.Yellow + ' version:' + termcap.Normal,
666 if not CXX_version:
667 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
668 termcap.Normal

--- 100 unchanged lines hidden (view full) ---

769 main.Append(TCMALLOC_CCFLAGS=['-fno-builtin'])
770
771 # On Mac OS X/Darwin we need to also use libc++ (part of XCode) as
772 # opposed to libstdc++, as the later is dated.
773 if sys.platform == "darwin":
774 main.Append(CXXFLAGS=['-stdlib=libc++'])
775 main.Append(LIBS=['c++'])
776
777 # On FreeBSD we need libthr.
778 if sys.platform.startswith('freebsd'):
779 main.Append(LIBS=['thr'])
780
774else:
775 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
776 print "Don't know what compiler options to use for your compiler."
777 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
778 print termcap.Yellow + ' version:' + termcap.Normal,
779 if not CXX_version:
780 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
781 termcap.Normal

--- 97 unchanged lines hidden (view full) ---

879
880# Set up SWIG flags & scanner
881swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
882main.Append(SWIGFLAGS=swig_flags)
883
884# Check for 'timeout' from GNU coreutils. If present, regressions will
885# be run with a time limit. We require version 8.13 since we rely on
886# support for the '--foreground' option.
781else:
782 print termcap.Yellow + termcap.Bold + 'Error' + termcap.Normal,
783 print "Don't know what compiler options to use for your compiler."
784 print termcap.Yellow + ' compiler:' + termcap.Normal, main['CXX']
785 print termcap.Yellow + ' version:' + termcap.Normal,
786 if not CXX_version:
787 print termcap.Yellow + termcap.Bold + "COMMAND NOT FOUND!" +\
788 termcap.Normal

--- 97 unchanged lines hidden (view full) ---

886
887# Set up SWIG flags & scanner
888swig_flags=Split('-c++ -python -modern -templatereduce $_CPPINCFLAGS')
889main.Append(SWIGFLAGS=swig_flags)
890
891# Check for 'timeout' from GNU coreutils. If present, regressions will
892# be run with a time limit. We require version 8.13 since we rely on
893# support for the '--foreground' option.
887timeout_lines = readCommand(['timeout', '--version'],
888 exception='').splitlines()
894if sys.platform.startswith('freebsd'):
895 timeout_lines = readCommand(['gtimeout', '--version'],
896 exception='').splitlines()
897else:
898 timeout_lines = readCommand(['timeout', '--version'],
899 exception='').splitlines()
889# Get the first line and tokenize it
890timeout_version = timeout_lines[0].split() if timeout_lines else []
891main['TIMEOUT'] = timeout_version and \
892 compareVersions(timeout_version[-1], '8.13') >= 0
893
894# filter out all existing swig scanners, they mess up the dependency
895# stuff for some reason
896scanners = []

--- 181 unchanged lines hidden (view full) ---

1078
1079# Detect back trace implementations. The last implementation in the
1080# list will be used by default.
1081backtrace_impls = [ "none" ]
1082
1083if conf.CheckLibWithHeader(None, 'execinfo.h', 'C',
1084 'backtrace_symbols_fd((void*)0, 0, 0);'):
1085 backtrace_impls.append("glibc")
900# Get the first line and tokenize it
901timeout_version = timeout_lines[0].split() if timeout_lines else []
902main['TIMEOUT'] = timeout_version and \
903 compareVersions(timeout_version[-1], '8.13') >= 0
904
905# filter out all existing swig scanners, they mess up the dependency
906# stuff for some reason
907scanners = []

--- 181 unchanged lines hidden (view full) ---

1089
1090# Detect back trace implementations. The last implementation in the
1091# list will be used by default.
1092backtrace_impls = [ "none" ]
1093
1094if conf.CheckLibWithHeader(None, 'execinfo.h', 'C',
1095 'backtrace_symbols_fd((void*)0, 0, 0);'):
1096 backtrace_impls.append("glibc")
1097elif conf.CheckLibWithHeader('execinfo', 'execinfo.h', 'C',
1098 'backtrace_symbols_fd((void*)0, 0, 0);'):
1099 # NetBSD and FreeBSD need libexecinfo.
1100 backtrace_impls.append("glibc")
1101 main.Append(LIBS=['execinfo'])
1086
1087if backtrace_impls[-1] == "none":
1088 default_backtrace_impl = "none"
1089 print termcap.Yellow + termcap.Bold + \
1090 "No suitable back trace implementation found." + \
1091 termcap.Normal
1092
1093if not have_posix_clock:

--- 462 unchanged lines hidden ---
1102
1103if backtrace_impls[-1] == "none":
1104 default_backtrace_impl = "none"
1105 print termcap.Yellow + termcap.Bold + \
1106 "No suitable back trace implementation found." + \
1107 termcap.Normal
1108
1109if not have_posix_clock:

--- 462 unchanged lines hidden ---