summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU-ELIOT-019992DFC\Administrator <Administrator@eliot-019992dfc.(none)>2009-02-10 15:12:15 -0500
committerU-ELIOT-019992DFC\Administrator <Administrator@eliot-019992dfc.(none)>2009-02-10 15:12:15 -0500
commit12a608a3abac9ff29172c44afdea131d14805810 (patch)
tree5fe6d49f0512120133099f3fb4778632c1414599
parent693a5607646976a25834fe36e521ff2147d9cc61 (diff)
downloadmongo-12a608a3abac9ff29172c44afdea131d14805810.tar.gz
windows release option
-rw-r--r--SConstruct13
1 files changed, 10 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 8320729ebe2..c598dc68d59 100644
--- a/SConstruct
+++ b/SConstruct
@@ -238,10 +238,17 @@ elif "win32" == os.sys.platform:
env.Append( CPPPATH=[ boostDir , javaHome + "/include" , javaHome + "/include/win32" , "pcre-7.4" , winSDKHome + "/Include" ] )
- # /Fo"Debug\\" /Fd"Debug\vc90.pdb"
+ env.Append( CPPFLAGS=" /EHsc /W3 " )
+ env.Append( CPPDEFINES=["WIN32","_CONSOLE","_CRT_SECURE_NO_WARNINGS","HAVE_CONFIG_H","PCRE_STATIC","_UNICODE","UNICODE" ] )
- env.Append( CPPFLAGS=" /Od /EHsc /Gm /RTC1 /MDd /ZI /W3 " )
- env.Append( CPPDEFINES=["WIN32","_DEBUG","_CONSOLE","_CRT_SECURE_NO_WARNINGS","HAVE_CONFIG_H","PCRE_STATIC","_UNICODE","UNICODE" ] )
+ if release:
+ env.Append( CPPDEFINES=[ "NDEBUG" ] )
+ env.Append( CPPFLAGS= " /O2 /Oi /GL /FD /MD /Gy /nologo /Zi /TP /errorReport:prompt /Gm " )
+ # /Yu"stdafx.h" /Fp"Release\db.pch" /Fo"Release\\" /Fd"Release\vc90.pdb"
+ else:
+ env.Append( CPPDEFINES=[ "_DEBUG" ] )
+ env.Append( CPPFLAGS=" /Od /Gm /RTC1 /MDd /ZI " )
+ # /Fo"Debug\\" /Fd"Debug\vc90.pdb"
env.Append( LIBPATH=[ boostDir + "/Lib" , javaHome + "/Lib" , winSDKHome + "/Lib" ] )
javaLibs += [ "jvm" ];