Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try to turn on global optimization for windows

  • Loading branch information...
commit ea26348dcbc532a89901ac1eea10f22666592e22 1 parent e2d7f15
@dwight dwight authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 SConstruct
View
9 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 " )
Please sign in to comment.
Something went wrong with that request. Please try again.