diff options
author | Mathias Stearn <mathias@10gen.com> | 2019-04-16 11:27:27 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2019-04-18 14:02:32 -0400 |
commit | 346d0c9ce934b07dbedb7909cc54815f892cd277 (patch) | |
tree | 1c647accb192ab2700749c20eb9595d51108a5ca /SConstruct | |
parent | f5c6e4d3fe96aa1683223d097c67ea40388c629c (diff) | |
download | mongo-346d0c9ce934b07dbedb7909cc54815f892cd277.tar.gz |
SERVER-40512 Use /diagnostics:caret on MSVC
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 168c3394fd4..e37ce6e99ab 100644 --- a/SConstruct +++ b/SConstruct @@ -1781,6 +1781,9 @@ elif env.TargetOSIs('windows'): # Treat volatile according to the ISO standard and do not guarantee acquire/release semantics. env.Append( CCFLAGS=["/volatile:iso"] ) + # Tell CL to produce more useful error messages. + env.Append( CCFLAGS=["/diagnostics:caret"] ) + # This gives 32-bit programs 4 GB of user address space in WOW64, ignored in 64-bit builds. env.Append( LINKFLAGS=["/LARGEADDRESSAWARE"] ) |