浏览代码

Intel: On Windows use /EHsc instead of deprecated /GX (#13163)

Use of the deprecated option with Intel 2011 produces

 icl: command line remark #10010: option '/GX' is deprecated and will
 be removed in a future release. See '/help deprecated'

so use its replacement option which has been supported for several
older versions anyway.
Brad King 13 年之前
父节点
当前提交
4f80896e6c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/Platform/Windows-Intel-CXX.cmake

+ 1 - 1
Modules/Platform/Windows-Intel-CXX.cmake

@@ -1,4 +1,4 @@
 include(Platform/Windows-Intel)
 include(Platform/Windows-Intel)
 set(_COMPILE_CXX " /TP")
 set(_COMPILE_CXX " /TP")
-set(_FLAGS_CXX " /GX /GR")
+set(_FLAGS_CXX " /EHsc /GR")
 __windows_compiler_intel(CXX)
 __windows_compiler_intel(CXX)