summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-11-09 21:48:28 -0800
committerGabe Black <gblack@eecs.umich.edu>2011-11-09 21:48:28 -0800
commit2ee59cee1b6130359b127c4d74d3d10bd01853a9 (patch)
tree820981f268c085ba8803186900b2562d94f21e6c /SConstruct
parent472645d62a40849f5622e1f98d1bb2883a4f0e5b (diff)
downloadgem5-2ee59cee1b6130359b127c4d74d3d10bd01853a9.tar.xz
GCC: Guard some gcc flags so they're used when available and needed.
Diffstat (limited to 'SConstruct')
-rwxr-xr-xSConstruct1
1 files changed, 1 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 06e1c3f16..89761a4f1 100755
--- a/SConstruct
+++ b/SConstruct
@@ -487,6 +487,7 @@ if main['GCC']:
# Note CCVERSION doesn't work here because it is run with the CC
# before we override it from the command line
gcc_version = readCommand([main['CXX'], '-dumpversion'], exception=False)
+ main['GCC_VERSION'] = gcc_version
if not compareVersions(gcc_version, '4.4.1') or \
not compareVersions(gcc_version, '4.4.2'):
print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.'