diff options
author | Eric Milkie <milkie@10gen.com> | 2012-04-03 11:17:18 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-04-03 11:17:18 -0400 |
commit | 8dd9661ca70d362a9bb5fc3a57581ac458752af1 (patch) | |
tree | c4e464537c0205893dc49f3f8948928ad6698577 /SConstruct | |
parent | 51e9cc2895caf46b496a039f4f7cf72fac9e510a (diff) | |
download | mongo-8dd9661ca70d362a9bb5fc3a57581ac458752af1.tar.gz |
new scons option --mute, for less build output
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index e4a7d0d576d..d95b668065d 100644 --- a/SConstruct +++ b/SConstruct @@ -132,6 +132,9 @@ def get_variant_dir(): s += "normal/" return s +# build output +add_option( "mute" , "do not display commandlines for compiling and linking, to reduce screen noise", 0, False ) + # installation/packaging add_option( "prefix" , "installation prefix" , 1 , False, default=DEFAULT_INSTALL_DIR ) add_option( "distname" , "dist name (0.8.0)" , 1 , False ) @@ -288,6 +291,12 @@ env = Environment( BUILD_DIR=variantDir, PCRE_VERSION='8.30', ) +if has_option('mute'): + env.Append( CCCOMSTR = "Compiling $TARGET" ) + env.Append( CXXCOMSTR = env["CCCOMSTR"] ) + env.Append( LINKCOMSTR = "Linking $TARGET" ) + env.Append( ARCOMSTR = "Generating library $TARGET" ) + if has_option('mongod-concurrency-level'): env.Append(CPPDEFINES=['MONGOD_CONCURRENCY_LEVEL=MONGOD_CONCURRENCY_LEVEL_%s' % get_option('mongod-concurrency-level').upper()]) |