summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2017-10-20 17:11:32 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2017-10-20 17:11:32 -0400
commit98c383e7e7b7f7e0bc9964e3d18f9aaa3539ff59 (patch)
tree6f6c8fbe44d49e129b836b7426a6f7c05bb05586 /SConstruct
parentf13e5ad084191e1b38992817c5796bbf6e6e9551 (diff)
downloadmongo-98c383e7e7b7f7e0bc9964e3d18f9aaa3539ff59.tar.gz
SERVER-17414 Enable Warnings As Errors on Windows, and disable/fix warnings
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 4 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 22cc72559f7..8228a103036 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1502,6 +1502,10 @@ elif env.TargetOSIs('windows'):
# object called lock on the stack.
env.Append( CCFLAGS=["/we4013", "/we4099", "/we4930"] )
+ # Warnings as errors
+ if not has_option("disable-warnings-as-errors"):
+ env.Append( CCFLAGS=["/WX"] )
+
env.Append( CPPDEFINES=["_CONSOLE","_CRT_SECURE_NO_WARNINGS", "_SCL_SECURE_NO_WARNINGS"] )
# this would be for pre-compiled headers, could play with it later