SConstruct (10453:d0365cc3d05f) SConstruct (10456:1e2cf7b3e9d4)
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

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

181 help='Disable Link-Time Optimization for fast')
182AddLocalOption('--update-ref', dest='update_ref', action='store_true',
183 help='Update test reference outputs')
184AddLocalOption('--verbose', dest='verbose', action='store_true',
185 help='Print full tool command lines')
186AddLocalOption('--without-python', dest='without_python',
187 action='store_true',
188 help='Build without Python configuration support')
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

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

181 help='Disable Link-Time Optimization for fast')
182AddLocalOption('--update-ref', dest='update_ref', action='store_true',
183 help='Update test reference outputs')
184AddLocalOption('--verbose', dest='verbose', action='store_true',
185 help='Print full tool command lines')
186AddLocalOption('--without-python', dest='without_python',
187 action='store_true',
188 help='Build without Python configuration support')
189AddLocalOption('--without-tcmalloc', dest='without_tcmalloc',
190 action='store_true',
191 help='Disable linking against tcmalloc')
189
190termcap = get_termcap(GetOption('use_colors'))
191
192########################################################################
193#
194# Set up the main build environment.
195#
196########################################################################

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

968 'clock_nanosleep(0,0,NULL,NULL);') or \
969 conf.CheckLibWithHeader('rt', 'time.h', 'C',
970 'clock_nanosleep(0,0,NULL,NULL);')
971
972have_posix_timers = \
973 conf.CheckLibWithHeader([None, 'rt'], [ 'time.h', 'signal.h' ], 'C',
974 'timer_create(CLOCK_MONOTONIC, NULL, NULL);')
975
192
193termcap = get_termcap(GetOption('use_colors'))
194
195########################################################################
196#
197# Set up the main build environment.
198#
199########################################################################

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

971 'clock_nanosleep(0,0,NULL,NULL);') or \
972 conf.CheckLibWithHeader('rt', 'time.h', 'C',
973 'clock_nanosleep(0,0,NULL,NULL);')
974
975have_posix_timers = \
976 conf.CheckLibWithHeader([None, 'rt'], [ 'time.h', 'signal.h' ], 'C',
977 'timer_create(CLOCK_MONOTONIC, NULL, NULL);')
978
976if conf.CheckLib('tcmalloc'):
977 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
978elif conf.CheckLib('tcmalloc_minimal'):
979 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
980else:
981 print termcap.Yellow + termcap.Bold + \
982 "You can get a 12% performance improvement by installing tcmalloc "\
983 "(libgoogle-perftools-dev package on Ubuntu or RedHat)." + \
984 termcap.Normal
979if not GetOption('without_tcmalloc'):
980 if conf.CheckLib('tcmalloc'):
981 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
982 elif conf.CheckLib('tcmalloc_minimal'):
983 main.Append(CCFLAGS=main['TCMALLOC_CCFLAGS'])
984 else:
985 print termcap.Yellow + termcap.Bold + \
986 "You can get a 12% performance improvement by "\
987 "installing tcmalloc (libgoogle-perftools-dev package "\
988 "on Ubuntu or RedHat)." + termcap.Normal
985
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."

--- 398 unchanged lines hidden ---
989
990if not have_posix_clock:
991 print "Can't find library for POSIX clocks."
992
993# Check for <fenv.h> (C99 FP environment control)
994have_fenv = conf.CheckHeader('fenv.h', '<>')
995if not have_fenv:
996 print "Warning: Header file <fenv.h> not found."

--- 398 unchanged lines hidden ---