[compiler-rt] 4c27981 - [compiler-rt] Support triples that start with thumb*- (#206848)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 23:14:14 PDT 2026
Author: Petr Hosek
Date: 2026-06-30T23:14:09-07:00
New Revision: 4c27981352753962ffeba8ba9a6d2d49b70a240b
URL: https://github.com/llvm/llvm-project/commit/4c27981352753962ffeba8ba9a6d2d49b70a240b
DIFF: https://github.com/llvm/llvm-project/commit/4c27981352753962ffeba8ba9a6d2d49b70a240b.diff
LOG: [compiler-rt] Support triples that start with thumb*- (#206848)
thumb*- can be used as an alias for arm*- (implying -mthumb).
Added:
Modified:
compiler-rt/cmake/Modules/CompilerRTUtils.cmake
Removed:
################################################################################
diff --git a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
index 75216ed704bce..e4e3cfb9a2d99 100644
--- a/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTUtils.cmake
@@ -419,6 +419,11 @@ macro(construct_compiler_rt_default_triple)
set(COMPILER_RT_DEFAULT_TARGET_ARCH "i386")
endif()
+ if("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "^thumb")
+ string(REPLACE "thumb" "arm" COMPILER_RT_DEFAULT_TARGET_ARCH "${COMPILER_RT_DEFAULT_TARGET_ARCH}")
+ set(COMPILER_RT_ARM_THUMB ON)
+ endif()
+
if("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "amdgpu|amdgcn")
set(COMPILER_RT_TARGET_AMDGPU TRUE)
else()
More information about the llvm-commits
mailing list