SConstruct (9888:68d6b600d51f) SConstruct (9900:19dc2b26eefa)
1# -*- mode:python -*-
2
3# Copyright (c) 2013 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

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

908
909# Check for librt.
910have_posix_clock = \
911 conf.CheckLibWithHeader(None, 'time.h', 'C',
912 'clock_nanosleep(0,0,NULL,NULL);') or \
913 conf.CheckLibWithHeader('rt', 'time.h', 'C',
914 'clock_nanosleep(0,0,NULL,NULL);')
915
1# -*- mode:python -*-
2
3# Copyright (c) 2013 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

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

908
909# Check for librt.
910have_posix_clock = \
911 conf.CheckLibWithHeader(None, 'time.h', 'C',
912 'clock_nanosleep(0,0,NULL,NULL);') or \
913 conf.CheckLibWithHeader('rt', 'time.h', 'C',
914 'clock_nanosleep(0,0,NULL,NULL);')
915
916have_posix_timers = \
917 conf.CheckLibWithHeader([None, 'rt'], [ 'time.h', 'signal.h' ], 'C',
918 'timer_create(CLOCK_MONOTONIC, NULL, NULL);')
919
916if conf.CheckLib('tcmalloc'):
917 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
918elif conf.CheckLib('tcmalloc_minimal'):
919 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
920else:
921 print termcap.Yellow + termcap.Bold + \
922 "You can get a 12% performance improvement by installing tcmalloc "\
923 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \

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

1219
1220 if env['EFENCE']:
1221 env.Append(LIBS=['efence'])
1222
1223 if env['USE_KVM']:
1224 if not have_kvm:
1225 print "Warning: Can not enable KVM, host seems to lack KVM support"
1226 env['USE_KVM'] = False
920if conf.CheckLib('tcmalloc'):
921 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
922elif conf.CheckLib('tcmalloc_minimal'):
923 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
924else:
925 print termcap.Yellow + termcap.Bold + \
926 "You can get a 12% performance improvement by installing tcmalloc "\
927 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \

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

1223
1224 if env['EFENCE']:
1225 env.Append(LIBS=['efence'])
1226
1227 if env['USE_KVM']:
1228 if not have_kvm:
1229 print "Warning: Can not enable KVM, host seems to lack KVM support"
1230 env['USE_KVM'] = False
1231 elif not have_posix_timers:
1232 print "Warning: Can not enable KVM, host seems to lack support " \
1233 "for POSIX timers"
1234 env['USE_KVM'] = False
1227 elif not is_isa_kvm_compatible(env['TARGET_ISA']):
1228 print "Info: KVM support disabled due to unsupported host and " \
1229 "target ISA combination"
1230 env['USE_KVM'] = False
1231
1232 # Save sticky variable settings back to current variables file
1233 sticky_vars.Save(current_vars_file, env)
1234

--- 27 unchanged lines hidden ---
1235 elif not is_isa_kvm_compatible(env['TARGET_ISA']):
1236 print "Info: KVM support disabled due to unsupported host and " \
1237 "target ISA combination"
1238 env['USE_KVM'] = False
1239
1240 # Save sticky variable settings back to current variables file
1241 sticky_vars.Save(current_vars_file, env)
1242

--- 27 unchanged lines hidden ---