mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user