SConstruct (9044:904ddeecc653) SConstruct (9045:eb2975c014cd)
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

744
745# Check for librt.
746have_posix_clock = \
747 conf.CheckLibWithHeader(None, 'time.h', 'C',
748 'clock_nanosleep(0,0,NULL,NULL);') or \
749 conf.CheckLibWithHeader('rt', 'time.h', 'C',
750 'clock_nanosleep(0,0,NULL,NULL);')
751
1# -*- mode:python -*-
2
3# Copyright (c) 2011 Advanced Micro Devices, Inc.
4# Copyright (c) 2009 The Hewlett-Packard Development Company
5# Copyright (c) 2004-2005 The Regents of The University of Michigan
6# All rights reserved.
7#
8# Redistribution and use in source and binary forms, with or without

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

744
745# Check for librt.
746have_posix_clock = \
747 conf.CheckLibWithHeader(None, 'time.h', 'C',
748 'clock_nanosleep(0,0,NULL,NULL);') or \
749 conf.CheckLibWithHeader('rt', 'time.h', 'C',
750 'clock_nanosleep(0,0,NULL,NULL);')
751
752if conf.CheckLib('tcmalloc_minimal'):
753 have_tcmalloc = True
754else:
755 have_tcmalloc = False
756 print termcap.Yellow + termcap.Bold + \
757 "You can get a 12% performance improvement by installing tcmalloc "\
758 "(google-perftools package on Ubuntu or RedHat)." + termcap.Normal
759
752if not have_posix_clock:
753 print "Can't find library for POSIX clocks."
754
755# Check for <fenv.h> (C99 FP environment control)
756have_fenv = conf.CheckHeader('fenv.h', '<>')
757if not have_fenv:
758 print "Warning: Header file <fenv.h> not found."
759 print " This host has no IEEE FP rounding mode control."

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

1006 env.Append(LIBS=['efence'])
1007
1008 # Save sticky variable settings back to current variables file
1009 sticky_vars.Save(current_vars_file, env)
1010
1011 if env['USE_SSE2']:
1012 env.Append(CCFLAGS=['-msse2'])
1013
760if not have_posix_clock:
761 print "Can't find library for POSIX clocks."
762
763# Check for <fenv.h> (C99 FP environment control)
764have_fenv = conf.CheckHeader('fenv.h', '<>')
765if not have_fenv:
766 print "Warning: Header file <fenv.h> not found."
767 print " This host has no IEEE FP rounding mode control."

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

1014 env.Append(LIBS=['efence'])
1015
1016 # Save sticky variable settings back to current variables file
1017 sticky_vars.Save(current_vars_file, env)
1018
1019 if env['USE_SSE2']:
1020 env.Append(CCFLAGS=['-msse2'])
1021
1022 if have_tcmalloc:
1023 env.Append(LIBS=['tcmalloc_minimal'])
1024
1014 # The src/SConscript file sets up the build rules in 'env' according
1015 # to the configured variables. It returns a list of environments,
1016 # one for each variant build (debug, opt, etc.)
1017 envList = SConscript('src/SConscript', variant_dir = variant_path,
1018 exports = 'env')
1019
1020 # Set up the regression tests for each build.
1021 for e in envList:

--- 16 unchanged lines hidden ---
1025 # The src/SConscript file sets up the build rules in 'env' according
1026 # to the configured variables. It returns a list of environments,
1027 # one for each variant build (debug, opt, etc.)
1028 envList = SConscript('src/SConscript', variant_dir = variant_path,
1029 exports = 'env')
1030
1031 # Set up the regression tests for each build.
1032 for e in envList:

--- 16 unchanged lines hidden ---