Skip to content

Commit 75325c6

Browse files
[Darwin][CompilerRT] Set compiler ID to 'Clang' for Compiler RT Tests for Apple Clang (#121858)
This patch restores previous behavior. Even when the Compiler ID is set to AppleClang, we expect Compiler RT Tests to use Clang as the compiler ID. This impacts various make and lit commands. Caused by: https://github.com/llvm/llvm-project/pull/117812/files rdar://141548700
1 parent 56936ec commit 75325c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler-rt/cmake/base-config-ix.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ else()
8989
set(COMPILER_RT_TEST_COMPILER_ID GNU)
9090
endif()
9191

92+
# AppleClang expects 'Clang' as compiler-rt test compiler ID.
93+
if ("${COMPILER_RT_TEST_COMPILER_ID}" STREQUAL "AppleClang")
94+
set(COMPILER_RT_TEST_COMPILER_ID Clang)
95+
endif()
96+
9297
if(NOT DEFINED COMPILER_RT_OS_DIR)
9398
if(ANDROID)
9499
# The CMAKE_SYSTEM_NAME for Android is Android, but the OS is Linux and the

0 commit comments

Comments
 (0)