summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-07-07 11:19:19 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-07-07 11:27:42 -0400
commite38826d61c3906369b261fac08f614633459168f (patch)
tree43608b816f91bdae805a0582f88584d1e5de4685 /SConstruct
parentb1c26e0b08b74ece99bddf911707edeba543107c (diff)
downloadmongo-e38826d61c3906369b261fac08f614633459168f.tar.gz
SERVER-19088 The cache scons flag should disable fast-and-loose scons flag
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 36726978589..efb2cf84426 100644
--- a/SConstruct
+++ b/SConstruct
@@ -991,7 +991,9 @@ if optBuild:
env.SetConfigHeaderDefine("MONGO_CONFIG_OPTIMIZED_BUILD")
# Ignore requests to build fast and loose for release builds.
-if get_option('build-fast-and-loose') == "on" and not has_option('release'):
+# Also ignore fast-and-loose option if the scons cache is enabled (see SERVER-19088)
+if get_option('build-fast-and-loose') == "on" and \
+ not has_option('release') and not has_option('cache'):
# See http://www.scons.org/wiki/GoFastButton for details
env.Decider('MD5-timestamp')
env.SetOption('max_drift', 1)