summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMike Dirolf <mike@10gen.com>2010-07-28 10:57:31 -0400
committerMike Dirolf <mike@10gen.com>2010-07-28 10:57:31 -0400
commit5eb93a30e6066a6ffbf417f734771c7996db0928 (patch)
tree970d223e96354839c6464e85aad6bf0e5822332e /SConstruct
parentcdc48b26f1cf7ecb50c01e0bcc91b916cc2ce54a (diff)
downloadmongo-5eb93a30e6066a6ffbf417f734771c7996db0928.tar.gz
add --extrapath to client build
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index dc1ee6bfe6b..79d99eeefb0 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1655,7 +1655,10 @@ if installDir[-1] != "/":
def build_and_test_client(env, target, source):
from subprocess import call
- call("scons", cwd=installDir)
+ if GetOption("extrapath") is not None:
+ call("scons --extrapath=%s" % GetOption("extrapath"), cwd=installDir)
+ else:
+ call("scons", cwd=installDir)
return bool(call(["python", "buildscripts/smoke.py",
"--test-path", installDir, "smokeClient"]))
env.Alias("clientBuild", [mongod, installDir], [build_and_test_client])