summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-07-08 17:38:29 -0400
committerdwight <dwight@10gen.com>2011-07-08 17:38:29 -0400
commit2d1a803e679ae48e0ca33191803db3d511ce6337 (patch)
tree289ca7ad9d11e7c2181d512bc97d7d539cad3414 /SConstruct
parent6c1b310ccc9ca5aef4b85948367f44d388f57a92 (diff)
downloadmongo-2d1a803e679ae48e0ca33191803db3d511ce6337.tar.gz
osnew option for newer OS api functions
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct5
1 files changed, 4 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f9a504eaac2..651aad727d4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -138,6 +138,7 @@ add_option( "usev8" , "use v8 for javascript" , 0 , True )
# mongo feature options
add_option( "noshell", "don't build shell" , 0 , True )
add_option( "safeshell", "don't let shell scripts run programs (still, don't run untrusted scripts)" , 0 , True )
+add_option( "osnew", "use newer operating system API features" , 0 , False )
# dev tools
add_option( "d", "debug build no optimization, etc..." , 0 , True , "debugBuild" )
@@ -227,7 +228,6 @@ if has_option( "cpppath" ):
env.Append( CPPDEFINES=[ "_SCONS" , "MONGO_EXPOSE_MACROS" ] )
env.Append( CPPPATH=[ "." ] )
-
if has_option( "safeshell" ):
env.Append( CPPDEFINES=[ "MONGO_SAFE_SHELL" ] )
@@ -519,6 +519,9 @@ elif "win32" == os.sys.platform:
#if force64:
# release = True
+ if has_option( "osnew" ):
+ env.Append( CPPDEFINES=[ "MONGO_USE_SRW_ON_WINDOWS" ] )
+
for pathdir in env['ENV']['PATH'].split(os.pathsep):
if os.path.exists(os.path.join(pathdir, 'cl.exe')):
print( "found visual studio at " + pathdir )