summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2014-07-12 17:43:03 -0400
committerAndrew Morrow <acm@mongodb.com>2014-07-14 18:54:27 -0400
commit3982b2f3accac0a441f6a8eb71190ed49fcdbb06 (patch)
treece5fa93dd631446e5382f5aa941e98219c8b3d1b
parenta6a55dfeb3ce0edebc7d58a119b41fe590b61e07 (diff)
downloadmongo-3982b2f3accac0a441f6a8eb71190ed49fcdbb06.tar.gz
SERVER-14343 Build fast and loose by default
-rw-r--r--SConstruct7
1 files changed, 4 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 9f54144f020..4f4a39ebd17 100644
--- a/SConstruct
+++ b/SConstruct
@@ -300,7 +300,8 @@ add_option( "use-cpu-profiler",
"Link against the google-perftools profiler library",
0, False )
-add_option('build-fast-and-loose', "NEVER for production builds", 0, False)
+add_option('build-fast-and-loose', "looser dependency checking, ignored for --release builds",
+ '?', False, type="choice", choices=["on", "off"], const="on", default="on")
add_option('disable-warnings-as-errors', "Don't add -Werror to compiler command line", 0, False)
@@ -486,11 +487,11 @@ if has_option("propagate-shell-environment"):
env['_LIBDEPS'] = '$_LIBDEPS_OBJS'
-if has_option('build-fast-and-loose'):
+# Ignore requests to build fast and loose for release builds.
+if get_option('build-fast-and-loose') == "on" and not has_option('release'):
# See http://www.scons.org/wiki/GoFastButton for details
env.Decider('MD5-timestamp')
env.SetOption('max_drift', 1)
- env.SourceCode('.', None)
if has_option('mute'):
env.Append( CCCOMSTR = "Compiling $TARGET" )