summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-12-05 21:12:18 -0500
committerdwight <dwight@10gen.com>2010-12-05 21:12:18 -0500
commit2cf810007de7214097a6bffd3245c5fb3b37913f (patch)
tree89e54c6a540f21966f6aa56facebd76e16855806 /SConstruct
parentb0433dd55c09a6470bdbdf4f3418fdc2acc76e1d (diff)
parentb9c944466f229e687f994632400d112eb3878810 (diff)
downloadmongo-2cf810007de7214097a6bffd3245c5fb3b37913f.tar.gz
Merge branch 'master' of github.com:mongodb/mongo
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 7 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index f56c8601592..031d365b63c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -58,6 +58,9 @@ def has_option( name ):
if x == False:
return False
+ if x == "":
+ return False
+
return True
def get_variant_dir():
@@ -95,6 +98,10 @@ add_option( "nostrip", "do not strip installed binaries" , 0 , False )
add_option( "sharedclient", "build a libmongoclient.so/.dll" , 0 , False )
add_option( "full", "include client and headers when doing scons install", 0 , False )
+# linking options
+add_option( "release" , "release build" , 0 , True )
+add_option( "static" , "fully static build" , 0 , True )
+
# base compile flags
add_option( "64" , "whether to force 64 bit" , 0 , True , "force64" )
add_option( "32" , "whether to force 32 bit" , 0 , True , "force32" )
@@ -113,9 +120,6 @@ add_option( "staticlibpath", "comma separated list of dirs to search for staticl
add_option( "boost-compiler", "compiler used for boost (gcc41)" , 1 , True , "boostCompiler" )
add_option( "boost-version", "boost version for linking(1_38)" , 1 , True , "boostVersion" )
-# linking options
-add_option( "release" , "release build" , 0 , True )
-add_option( "static" , "fully static build" , 0 , True )
# experimental features
add_option( "mm", "use main memory instead of memory mapped files" , 0 , True )
@@ -148,7 +152,6 @@ add_option( "heapcheck", "link to heap-checking malloc-lib and look for memory l
add_option("smokedbprefix", "prefix to dbpath et al. for smoke tests", 1 , False )
-
# --- environment setup ---
def removeIfInList( lst , thing ):