diff options
| author | Dwight Merriman <dwight@10gen.com> | 2010-05-01 20:30:15 -0400 |
|---|---|---|
| committer | Dwight Merriman <dwight@10gen.com> | 2010-05-01 20:30:15 -0400 |
| commit | ea26348dcbc532a89901ac1eea10f22666592e22 (patch) | |
| tree | 1307f2aa8ec611f0b80c5106ca3dff0fae4c4252 | |
| parent | e2d7f15df072a967b55747b3154dc66dc0baf3c0 (diff) | |
try to turn on global optimization for windows
| -rw-r--r-- | SConstruct | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct index 8fdec2cdeb8..92874a5c494 100644 --- a/SConstruct +++ b/SConstruct @@ -602,10 +602,15 @@ elif "win32" == os.sys.platform: if release: env.Append( CPPDEFINES=[ "NDEBUG" ] ) - env.Append( CPPFLAGS= " /O2 /Oi /FD /nologo /MT /Gy /Zi /TP /errorReport:prompt /Gm " ) - #env.Append( CPPFLAGS= " /GL " ) # TODO: this has caused some linking problems + env.Append( CPPFLAGS= " /O2 /FD /nologo /MT /Gy /Zi /TP /errorReport:prompt /Gm " ) + # TODO: this has caused some linking problems : + env.Append( CPPFLAGS= " /GL " ) + env.Append( LINKFLAGS=" /LTCG " ) else: env.Append( CPPDEFINES=[ "_DEBUG" ] ) + # /Od disable optimization + # /ZI debug info w/edit & continue + # RTC1 /GZ (Enable Stack Frame Run-Time Error Checking) env.Append( CPPFLAGS=" /Od /Gm /RTC1 /MDd /ZI " ) env.Append( CPPFLAGS=' /Fd"mongod.pdb" ' ) env.Append( LINKFLAGS=" /incremental:yes /debug " ) |
