[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
This commit is contained in:
thetruestblue
2025-01-07 13:19:55 -08:00
committed by GitHub
parent 56936ec63d
commit 75325c658e

View File

@@ -89,6 +89,11 @@ else()
set(COMPILER_RT_TEST_COMPILER_ID GNU)
endif()
# AppleClang expects 'Clang' as compiler-rt test compiler ID.
if ("${COMPILER_RT_TEST_COMPILER_ID}" STREQUAL "AppleClang")
set(COMPILER_RT_TEST_COMPILER_ID Clang)
endif()
if(NOT DEFINED COMPILER_RT_OS_DIR)
if(ANDROID)
# The CMAKE_SYSTEM_NAME for Android is Android, but the OS is Linux and the