summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SConstruct1
-rw-r--r--src/mongo/SConscript2
2 files changed, 2 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 65f9acbd7c4..cb25b640e83 100644
--- a/SConstruct
+++ b/SConstruct
@@ -277,6 +277,7 @@ env = Environment( BUILD_DIR=variantDir,
CLIENT_LICENSE='#distsrc/client/LICENSE.txt',
CLIENT_SCONSTRUCT='#distsrc/client/SConstruct',
DIST_ARCHIVE_SUFFIX='.tgz',
+ EXTRAPATH=get_option("extrapath"),
MSVS_ARCH=msarch ,
PYTHON=utils.find_python(),
SERVER_ARCHIVE='${SERVER_DIST_BASENAME}${DIST_ARCHIVE_SUFFIX}',
diff --git a/src/mongo/SConscript b/src/mongo/SConscript
index dc05d49ff25..719b6f18f2e 100644
--- a/src/mongo/SConscript
+++ b/src/mongo/SConscript
@@ -501,6 +501,6 @@ env.Alias( "install", "$INSTALL_DIR" )
env.Alias("clientBuild", ['#buildscripts/build_and_test_client.py',
'#/${PROGPREFIX}mongod${PROGSUFFIX}',
'#$CLIENT_ARCHIVE'],
- '$PYTHON ${SOURCES[0]} ${SOURCES[2]}'
+ '$PYTHON ${SOURCES[0]} ${SOURCES[2]} ${EXTRAPATH and "--extrapath"} $EXTRAPATH'
)
env.AlwaysBuild("clientBuild")