Browse Source

IntelLLVM: Remove unsupported -imsvc system include flag

`clang-cl` supports the `-imsvc` flag to tell the compiler an include
directory is intended for system paths.  `icx` does not accept this
flag, even on MSVC platforms, so do not tell CMake that it exists.

Fixes: #21801
Signed-off-by: william.r.dieter <[email protected]>
william.r.dieter 5 years ago
parent
commit
e5563e592f
1 changed files with 0 additions and 1 deletions
  1. 0 1
      Modules/Compiler/IntelLLVM.cmake

+ 0 - 1
Modules/Compiler/IntelLLVM.cmake

@@ -18,7 +18,6 @@ set(__pch_header_OBJCXX "objective-c++-header")
 if(CMAKE_HOST_WIN32)
 if(CMAKE_HOST_WIN32)
   # MSVC-like
   # MSVC-like
   macro(__compiler_intel_llvm lang)
   macro(__compiler_intel_llvm lang)
-    set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-imsvc ")
     if(NOT "x${lang}" STREQUAL "xFortran")
     if(NOT "x${lang}" STREQUAL "xFortran")
       set(CMAKE_${lang}_COMPILE_OPTIONS_INVALID_PCH -Winvalid-pch)
       set(CMAKE_${lang}_COMPILE_OPTIONS_INVALID_PCH -Winvalid-pch)
     endif()
     endif()