summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2018-11-15 15:01:22 -0500
committerHenrik Edin <henrik.edin@mongodb.com>2018-11-27 11:58:44 -0500
commite03ee5c6df7939134345ace00fcc3087335f62d8 (patch)
treec6f3203bd5d3fe8c3df2024d66fda8bbe9274725 /SConstruct
parenta83ee33c56dcfc8cdcfa0dd0c458f6fef89a3113 (diff)
downloadmongo-e03ee5c6df7939134345ace00fcc3087335f62d8.tar.gz
SERVER-38160 Allow compilation with Visual Studio 2017.
Take SCons MSCommon from SCons 3.0.1 Fix missing <intrin.h> includes Suppress constant arithmetic warnings in unit tests
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 69f5aac1b12..8ab9d54757e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1602,6 +1602,9 @@ elif env.TargetOSIs('windows'):
env.Append( CPPDEFINES=[ "_UNICODE" ] )
env.Append( CPPDEFINES=[ "UNICODE" ] )
+ # Temporary fixes to allow compilation with VS2017
+ env.Append( CPPDEFINES=[ "_SILENCE_FPOS_SEEKPOS_DEPRECATION_WARNING" ] )
+
# /EHsc exception handling style for visual studio
# /W3 warning level
env.Append(CCFLAGS=["/EHsc","/W3"])