summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-22 00:01:03 +0100
committerGitHub <noreply@github.com>2017-11-22 00:01:03 +0100
commitf8fd9a4a62e32a34dc6ae888884eea115dcd75b4 (patch)
tree158f2f30eb0c93674aac37b933b49dcce82a6c9d
parentbedcbdd420c20ff37f5afc1b81080fd7b25c2a2f (diff)
parentc6cfbad47a6b8abf14196d50e01bb1b15e2016e3 (diff)
Merge pull request #13146 from hoelzl/pr-add-ehsc-flag-for-vc
Add explicit exception model flag for Visual C++
-rw-r--r--SConstruct2
1 files changed, 2 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 856994ef15..61edb1233b 100644
--- a/SConstruct
+++ b/SConstruct
@@ -326,6 +326,8 @@ if selected_platform in platform_list:
env.Append(CCFLAGS=['/W2'] + disable_nonessential_warnings)
else: # 'no'
env.Append(CCFLAGS=['/w'])
+ # Set exception handling model to avoid warnings caused by Windows system headers.
+ env.Append(CCFLAGS=['/EHsc'])
else: # Rest of the world
if (env["warnings"] == 'extra'):
env.Append(CCFLAGS=['-Wall', '-Wextra'])