SConstruct (11212:47e2adf7fb1a) | SConstruct (11235:4162427127e9) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015 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 --- 969 unchanged lines hidden (view full) --- 978 elif conf.CheckLib('tcmalloc_minimal'): 979 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS']) 980 else: 981 print termcap.Yellow + termcap.Bold + \ 982 "You can get a 12% performance improvement by "\ 983 "installing tcmalloc (libgoogle-perftools-dev package "\ 984 "on Ubuntu or RedHat)." + termcap.Normal 985 | 1# -*- mode:python -*- 2 3# Copyright (c) 2013, 2015 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 --- 969 unchanged lines hidden (view full) --- 978 elif conf.CheckLib('tcmalloc_minimal'): 979 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS']) 980 else: 981 print termcap.Yellow + termcap.Bold + \ 982 "You can get a 12% performance improvement by "\ 983 "installing tcmalloc (libgoogle-perftools-dev package "\ 984 "on Ubuntu or RedHat)." + termcap.Normal 985 |
986 987# Detect back trace implementations. The last implementation in the 988# list will be used by default. 989backtrace_impls = [ "none" ] 990 991if conf.CheckLibWithHeader(None, 'execinfo.h', 'C', 992 'backtrace_symbols_fd((void*)0, 0, 0);'): 993 backtrace_impls.append("glibc") 994 995if backtrace_impls[-1] == "none": 996 default_backtrace_impl = "none" 997 print termcap.Yellow + termcap.Bold + \ 998 "No suitable back trace implementation found." + \ 999 termcap.Normal 1000 |
|
986if not have_posix_clock: 987 print "Can't find library for POSIX clocks." 988 989# Check for <fenv.h> (C99 FP environment control) 990have_fenv = conf.CheckHeader('fenv.h', '<>') 991if not have_fenv: 992 print "Warning: Header file <fenv.h> not found." 993 print " This host has no IEEE FP rounding mode control." --- 132 unchanged lines hidden (view full) --- 1126 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 1127 False), 1128 BoolVariable('USE_POSIX_CLOCK', 'Use POSIX Clocks', have_posix_clock), 1129 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 1130 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), 1131 BoolVariable('USE_KVM', 'Enable hardware virtualized (KVM) CPU models', have_kvm), 1132 EnumVariable('PROTOCOL', 'Coherence protocol for Ruby', 'None', 1133 all_protocols), | 1001if not have_posix_clock: 1002 print "Can't find library for POSIX clocks." 1003 1004# Check for <fenv.h> (C99 FP environment control) 1005have_fenv = conf.CheckHeader('fenv.h', '<>') 1006if not have_fenv: 1007 print "Warning: Header file <fenv.h> not found." 1008 print " This host has no IEEE FP rounding mode control." --- 132 unchanged lines hidden (view full) --- 1141 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 1142 False), 1143 BoolVariable('USE_POSIX_CLOCK', 'Use POSIX Clocks', have_posix_clock), 1144 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 1145 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), 1146 BoolVariable('USE_KVM', 'Enable hardware virtualized (KVM) CPU models', have_kvm), 1147 EnumVariable('PROTOCOL', 'Coherence protocol for Ruby', 'None', 1148 all_protocols), |
1149 EnumVariable('BACKTRACE_IMPL', 'Post-mortem dump implementation', 1150 backtrace_impls[-1], backtrace_impls) |
|
1134 ) 1135 1136# These variables get exported to #defines in config/*.hh (see src/SConscript). 1137export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', 'TARGET_ISA', 'CP_ANNOTATE', 1138 'USE_POSIX_CLOCK', 'USE_KVM', 'PROTOCOL', 'HAVE_PROTOBUF', 1139 'HAVE_PERF_ATTR_EXCLUDE_HOST'] 1140 1141################################################### --- 267 unchanged lines hidden --- | 1151 ) 1152 1153# These variables get exported to #defines in config/*.hh (see src/SConscript). 1154export_vars += ['USE_FENV', 'SS_COMPATIBLE_FP', 'TARGET_ISA', 'CP_ANNOTATE', 1155 'USE_POSIX_CLOCK', 'USE_KVM', 'PROTOCOL', 'HAVE_PROTOBUF', 1156 'HAVE_PERF_ATTR_EXCLUDE_HOST'] 1157 1158################################################### --- 267 unchanged lines hidden --- |