瀏覽代碼

Add explicit exception model flag for Visual C++

Matthias Hoelzl 8 年之前
父節點
當前提交
c6cfbad47a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      SConstruct

+ 2 - 0
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'])