Parse CC/CXX early so that we use the correct compiler for testing dependencies/versions/libraries/etc
--HG-- extra : convert_revision : b34ee03e44b35df30b746c4c570316db75d6ffe5
This commit is contained in:
parent
fd213f7270
commit
ef5b842247
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue