0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-6705 disable FPO for 32-bit Windows

Disable Frame Pointer Omission/Optimization in Windows
release builds.  This is already disabled in debug builds,
and only affects the 32-bit version.
This commit is contained in:
Tad Marshall 2012-08-04 16:52:10 -04:00
parent c61c32ffb9
commit 0ff6b7aeb3

View File

@ -595,9 +595,10 @@ elif "win32" == os.sys.platform:
# /Z7 debug info goes into each individual .obj file -- no .pdb created
env.Append( CCFLAGS= ["/Z7", "/errorReport:none"] )
if release:
# /MT: Causes your application to use the multithread, static version of the run-time library (LIBCMT.lib)
# /O2: optimize for speed (as opposed to size)
env.Append( CCFLAGS= ["/O2", "/MT"] )
# /O2: optimize for speed (as opposed to size)
# /Oy-: disable frame pointer optimization (overrides /O2, only affects 32-bit)
# /MT: use the multithreaded, static version of the run-time library (LIBCMT.lib)
env.Append( CCFLAGS= ["/O2", "/Oy-", "/MT"] )
# TODO: this has caused some linking problems :
# /GL whole program optimization