diff options
author | Matthias Hoelzl <tc@xantira.com> | 2017-11-21 19:06:43 +0100 |
---|---|---|
committer | Matthias Hoelzl <tc@xantira.com> | 2017-11-21 19:06:43 +0100 |
commit | c6cfbad47a6b8abf14196d50e01bb1b15e2016e3 (patch) | |
tree | ad513c1a9a871a4b119e5b24eedadcb039f8e716 | |
parent | 640856f4d4f4e4d10e9f793caf6ac6f4d22678e6 (diff) | |
download | redot-engine-c6cfbad47a6b8abf14196d50e01bb1b15e2016e3.tar.gz |
Add explicit exception model flag for Visual C++
-rw-r--r-- | SConstruct | 2 |
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']) |