summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
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