Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2006-02-24 00:08:40 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2006-02-24 00:08:40 +0300
commit2f8f1b8cdfa40d4af7fef506e1a0eab3c7462277 (patch)
tree3cd83ba2ca79565c9dfad9cc8be7e40956e29a6b /SConstruct
parentecdfa5374aa929dd2c78f306ae1ffa9dee1040e9 (diff)
==SCons==
+ When giving CC and CXX on the command-line you can specify what compiler to use: scons CC=gcc-3.3 CXX=g++-3.3
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 8d0c0356b9d..70931073ad7 100644
--- a/SConstruct
+++ b/SConstruct
@@ -108,6 +108,13 @@ if not env:
print "Could not create a build environment"
Exit()
+cc = B.arguments.get('CC', None)
+cxx = B.arguments.get('CXX', None)
+if cc:
+ env['CC'] = cc
+if cxx:
+ env['CXX'] = cxx
+
if env['CC'] in ['cl', 'cl.exe'] and sys.platform=='win32':
platform = 'win32-vc'
elif env['CC'] in ['gcc'] and sys.platform=='win32':