diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-11-24 15:00:12 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-11-26 10:47:40 -0500 |
commit | 48ae7bda6e2d063d1ec195e54a46c9628eca2103 (patch) | |
tree | 9bb8ad54ca2e683de78af96feddce04805fd9881 | |
parent | 4df4b1066735e3806fa2efb4ff6d6c6b277ab6b1 (diff) | |
download | mongo-48ae7bda6e2d063d1ec195e54a46c9628eca2103.tar.gz |
SERVER-15357: Disable optimizations on Windows debug builds
-rw-r--r-- | SConstruct | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 2d2f0b53a82..d0b90dd208d 100644 --- a/SConstruct +++ b/SConstruct @@ -1720,7 +1720,7 @@ def doConfigure(myenv): print("Using the leak sanitizer requires a valid symbolizer") Exit(1) - if using_msvc(): + if using_msvc() and optBuild: # http://blogs.msdn.com/b/vcblog/archive/2013/09/11/introducing-gw-compiler-switch.aspx # myenv.Append( CCFLAGS=["/Gw", "/Gy"] ) |