summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2019-02-07 14:57:02 -0500
committerADAM David Alan Martin <adam.martin@10gen.com>2019-02-07 14:58:02 -0500
commita303fa31409893303b21c3938c9d34c97cf531a0 (patch)
treed361e474e442ba4ec80aa0585ff25eb97b491a2a /SConstruct
parentb5563fde2a1a0beac8ce58db619300adc9f3a7d9 (diff)
downloadmongo-a303fa31409893303b21c3938c9d34c97cf531a0.tar.gz
SERVER-39358 Disable building `dbtest` when not building jstests or shell.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index c2ad08211b4..a6dfd4998c2 100644
--- a/SConstruct
+++ b/SConstruct
@@ -3841,7 +3841,12 @@ env.SConscript(
variant_dir='$BUILD_DIR',
)
-all = env.Alias('all', ['core', 'tools', 'dbtest', 'unittests', 'integration_tests', 'benchmarks'])
+allTargets = ['core', 'tools', 'unittests', 'integration_tests', 'benchmarks']
+
+if not has_option('noshell') and usemozjs:
+ allTargets.extend(['dbtest'])
+
+env.Alias('all', allTargets)
# run the Dagger tool if it's installed
if should_dagger: