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 --- 696 unchanged lines hidden (view full) --- 705# Check for <fenv.h> (C99 FP environment control) 706have_fenv = conf.CheckHeader('fenv.h', '<>') 707if not have_fenv: 708 print "Warning: Header file <fenv.h> not found." 709 print " This host has no IEEE FP rounding mode control." 710 711###################################################################### 712# |
713# Finish the configuration 714# 715main = conf.Finish() 716 717###################################################################### 718# 719# Collect all non-global variables 720# --- 68 unchanged lines hidden (view full) --- 789 BoolVariable('EFENCE', 'Link with Electric Fence malloc debugger', 790 False), 791 BoolVariable('SS_COMPATIBLE_FP', 792 'Make floating-point results compatible with SimpleScalar', 793 False), 794 BoolVariable('USE_SSE2', 795 'Compile for SSE2 (-msse2) to get IEEE FP on x86 hosts', 796 False), |
797 BoolVariable('USE_POSIX_CLOCK', 'Use POSIX Clocks', have_posix_clock), 798 BoolVariable('USE_FENV', 'Use <fenv.h> IEEE mode control', have_fenv), 799 BoolVariable('USE_CHECKER', 'Use checker for detailed CPU models', False), 800 BoolVariable('CP_ANNOTATE', 'Enable critical path annotation capability', False), 801 BoolVariable('RUBY', 'Build with Ruby', False), 802 ) 803 804# These variables get exported to #defines in config/*.hh (see src/SConscript). |
805export_vars += ['FULL_SYSTEM', 'USE_FENV', |
806 'NO_FAST_ALLOC', 'FORCE_FAST_ALLOC', 'FAST_ALLOC_STATS', 807 'SS_COMPATIBLE_FP', 'USE_CHECKER', 'TARGET_ISA', 'CP_ANNOTATE', 808 'USE_POSIX_CLOCK' ] 809 810################################################### 811# 812# Define a SCons builder for configuration flag headers. 813# --- 148 unchanged lines hidden (view full) --- 962 963 if not env['USE_FENV']: 964 print "Warning: No IEEE FP rounding mode control in", variant_dir + "." 965 print " FP results may deviate slightly from other platforms." 966 967 if env['EFENCE']: 968 env.Append(LIBS=['efence']) 969 |
970 # Save sticky variable settings back to current variables file 971 sticky_vars.Save(current_vars_file, env) 972 973 if env['USE_SSE2']: 974 env.Append(CCFLAGS=['-msse2']) 975 976 # The src/SConscript file sets up the build rules in 'env' according 977 # to the configured variables. It returns a list of environments, --- 22 unchanged lines hidden --- |