[compiler-rt] [compiler-rt] Don't detect a versioned clang test compiler as GCC (PR #117812)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 1 11:44:19 PST 2024
================
@@ -77,9 +77,9 @@ else()
set(COMPILER_RT_TEST_CXX_COMPILER ${CMAKE_CXX_COMPILER} CACHE PATH "C++ Compiler to use for testing")
endif()
-if("${COMPILER_RT_TEST_COMPILER}" MATCHES "clang[+]*$")
- set(COMPILER_RT_TEST_COMPILER_ID Clang)
-elseif("${COMPILER_RT_TEST_COMPILER}" MATCHES "clang.*.exe$")
+if ("${COMPILER_RT_TEST_COMPILER}" STREQUAL ${CMAKE_C_COMPILER})
+ set(COMPILER_RT_TEST_COMPILER_ID "${CMAKE_C_COMPILER_ID}")
+elseif("${COMPILER_RT_TEST_COMPILER}" MATCHES "clang[^/]*$")
----------------
arichardson wrote:
Sounds good, will update to use that instead
https://github.com/llvm/llvm-project/pull/117812
More information about the llvm-commits
mailing list