diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2006-11-13 13:26:36 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2006-11-13 13:26:36 -0500 |
commit | ef5b842247ec3f13cc7c321324130eab0f636052 (patch) | |
tree | e6f67f3beb174cee322ffaf614744189133bb98a /SConstruct | |
parent | fd213f7270cd6a93d670ed8ebd27b442442f92d7 (diff) | |
download | gem5-ef5b842247ec3f13cc7c321324130eab0f636052.tar.xz |
Parse CC/CXX early so that we use the correct compiler for testing dependencies/versions/libraries/etc
--HG--
extra : convert_revision : b34ee03e44b35df30b746c4c570316db75d6ffe5
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index d3428e894..d8851f091 100644 --- a/SConstruct +++ b/SConstruct @@ -175,6 +175,14 @@ env = Environment(ENV = os.environ, # inherit user's environment vars ROOT = ROOT, SRCDIR = SRCDIR) +#Parse CC/CXX early so that we use the correct compiler for +# to test for dependencies/versions/libraries/includes +if ARGUMENTS.get('CC', None): + env['CC'] = ARGUMENTS.get('CC') + +if ARGUMENTS.get('CXX', None): + env['CXX'] = ARGUMENTS.get('CXX') + env.SConsignFile(os.path.join(build_root,"sconsign")) # Default duplicate option is to use hard links, but this messes up |