Clang: Use -TP flag for C++ sources with clang-cl

We do this for `cl`, so we should do it for `clang-cl`.

Fixes: #17394
This commit is contained in:
Brad King
2017-10-25 07:27:43 -04:00
parent a91eb5e41f
commit 7077a554f1
2 changed files with 2 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
include(Platform/Windows-Clang)
set(_COMPILE_CXX_MSVC " -TP")
__windows_compiler_clang(CXX)

View File

@@ -12,6 +12,7 @@ if("x${CMAKE_C_SIMULATE_ID}" STREQUAL "xMSVC"
OR "x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
include(Platform/Windows-MSVC)
macro(__windows_compiler_clang lang)
set(_COMPILE_${lang} "${_COMPILE_${lang}_MSVC}")
__windows_compiler_msvc(${lang})
endmacro()
else()