diff options
author | Andrew Morrow <acm@mongodb.com> | 2014-07-12 17:43:03 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2014-07-14 18:54:27 -0400 |
commit | 3982b2f3accac0a441f6a8eb71190ed49fcdbb06 (patch) | |
tree | ce5fa93dd631446e5382f5aa941e98219c8b3d1b /SConstruct | |
parent | a6a55dfeb3ce0edebc7d58a119b41fe590b61e07 (diff) | |
download | mongo-3982b2f3accac0a441f6a8eb71190ed49fcdbb06.tar.gz |
SERVER-14343 Build fast and loose by default
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
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" ) |