diff options
author | Andrew Morrow <acm@10gen.com> | 2013-03-14 14:23:30 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-03-23 11:19:59 -0400 |
commit | 037ccf6382b4e71de27104c670291b330d8d1e45 (patch) | |
tree | 0b46153bde7861c8fc1781a2ec6058493de0e7a8 /SConstruct | |
parent | 6286ed8d316f494d948ec02a2bc4163cc9285934 (diff) | |
download | mongo-037ccf6382b4e71de27104c670291b330d8d1e45.tar.gz |
Add option for slightly faster sconsing
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index b28ddb57a44..c9fd2515f58 100644 --- a/SConstruct +++ b/SConstruct @@ -243,6 +243,8 @@ add_option("mongod-concurrency-level", "Concurrency level, \"global\" or \"db\"" add_option('client-dist-basename', "Name of the client source archive.", 1, False, default='mongo-cxx-driver') +add_option('build-fast-and-loose', "NEVER for production builds", 0, False) + # don't run configure if user calls --help if GetOption('help'): Return() @@ -325,6 +327,12 @@ env = Environment( BUILD_DIR=variantDir, env['_LIBDEPS'] = '$_LIBDEPS_OBJS' +if has_option('build-fast-and-loose'): + # 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" ) env.Append( CXXCOMSTR = env["CCCOMSTR"] ) |