diff options
author | Tad Marshall <tad@10gen.com> | 2012-08-04 16:52:10 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-08-04 16:52:10 -0400 |
commit | 0ff6b7aeb373c82d70cd5a34ce1c2d85f4a725cb (patch) | |
tree | 01a881cc789c881fae98ebd667b1b69ba1e7f46c /SConstruct | |
parent | c61c32ffb95a1dbac6afd1539ebab12b9472eee0 (diff) | |
download | mongo-0ff6b7aeb373c82d70cd5a34ce1c2d85f4a725cb.tar.gz |
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.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct index 221304a088c..2e061b7d46c 100644 --- a/SConstruct +++ b/SConstruct @@ -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 |