[compiler-rt] [compiler-rt] Fix CMake configure on Windows (PR #90843)
Omair Javaid via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 03:45:14 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:")
----------------
omjavaid 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.
Yes exactly as you said. It is used in case we want to use clang like argument with clang-cl.
https://github.com/llvm/llvm-project/pull/90843
More information about the llvm-commits
mailing list