summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-28 11:14:26 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-28 11:14:26 -0400
commit27299f6d78a709c6d51c6280c3fec8bd83b1f2a8 (patch)
treea507680adde66f76bc64bf0ce8bdfba5252001c7 /SConstruct
parentaf2d29ca3008f098ccfea7199538e96ee0861218 (diff)
downloadmongo-27299f6d78a709c6d51c6280c3fec8bd83b1f2a8.tar.gz
--cxx option
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 4b7243ef1e3..20a1da2d26e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -142,6 +142,13 @@ AddOption( "--extrapath",
action="store",
help="comma seperated list of add'l paths (--extrapath /opt/foo/,/foo" )
+AddOption( "--cxx",
+ dest="cxx",
+ type="string",
+ nargs=1,
+ action="store",
+ help="compiler to use" )
+
AddOption( "--boost-compiler",
dest="boostCompiler",
@@ -201,6 +208,8 @@ usesm = not GetOption( "usesm" ) is None
usejvm = not GetOption( "usejvm" ) is None
env = Environment( MSVS_ARCH=msarch )
+if GetOption( "cxx" ) is not None:
+ env["CXX"] = GetOption( "cxx" )
env["LIBPATH"] = []
if GetOption( "recstore" ) != None: