diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-12-22 11:28:02 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2016-12-22 11:28:02 -0500 |
commit | 32635c99eca93e74aa52ae49f004be12dda66a8a (patch) | |
tree | 31c0abacc9e177c9aec102341ce2d903da3e607d /SConstruct | |
parent | 46f05091c9a7d46b3233a12f28d04e29b6f1dfc9 (diff) | |
download | mongo-32635c99eca93e74aa52ae49f004be12dda66a8a.tar.gz |
SERVER-26699 Enable MSVC flags for C++ standards alignment
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index 659aa29b879..3f4bbd38db0 100644 --- a/SConstruct +++ b/SConstruct @@ -1518,7 +1518,20 @@ elif env.TargetOSIs('windows'): # Support large object files since some unit-test sources contain a lot of code env.Append( CCFLAGS=["/bigobj"] ) - # This gives 32-bit programs 4 GB of user address space in WOW64, ignored in 64-bit builds + # Set Source and Executable character sets to UTF-8, this will produce a warning C4828 if the + # file contains invalid UTF-8. + env.Append( CCFLAGS=["/utf-8" ]) + + # Enforce type conversion rules for rvalue reference types as a result of a cast operation. + env.Append( CCFLAGS=["/Zc:rvalueCast"] ) + + # Disable string literal type conversion, instead const_cast must be explicitly specified. + env.Append( CCFLAGS=["/Zc:strictStrings"] ) + + # Treat volatile according to the ISO standard and do not guarantee acquire/release semantics. + env.Append( CCFLAGS=["/volatile:iso"] ) + + # This gives 32-bit programs 4 GB of user address space in WOW64, ignored in 64-bit builds. env.Append( LINKFLAGS=["/LARGEADDRESSAWARE"] ) env.Append( |