[compiler-rt] [compiler-rt] Fix CMake configure on Windows (PR #90843)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 03:37:10 PDT 2024
================
@@ -369,7 +369,11 @@ macro(construct_compiler_rt_default_triple)
endif()
if ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang")
- execute_process(COMMAND ${CMAKE_C_COMPILER} --target=${COMPILER_RT_DEFAULT_TARGET_TRIPLE} -print-target-triple
+ set(cmd_prefix "")
+ if (CMAKE_C_SIMULATE_ID MATCHES "MSVC")
+ set(cmd_prefix "/clang:")
----------------
DavidSpickett wrote:
This does what exactly?
I guess that it marks the following option as a normal clang style option `/clang: -something-like-this` instead of a `/option` which cl.exe would be expecting.
https://github.com/llvm/llvm-project/pull/90843
More information about the llvm-commits
mailing list