[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:39:40 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:

Maybe call it "option prefix" instead, since to my eyes the "command" is the whole thing `clang ...`.

https://github.com/llvm/llvm-project/pull/90843


More information about the llvm-commits mailing list