mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-14 13:28:35 +00:00
19 lines
762 B
Diff
19 lines
762 B
Diff
fix builtins armhf default arch detection by adding the same armhf triple
|
|
handling use for compiler-rt
|
|
Index: llvm-toolchain-12_12.0.1/compiler-rt/lib/builtins/CMakeLists.txt
|
|
===================================================================
|
|
--- llvm-toolchain-12_12.0.1.orig/compiler-rt/lib/builtins/CMakeLists.txt
|
|
+++ llvm-toolchain-12_12.0.1/compiler-rt/lib/builtins/CMakeLists.txt
|
|
@@ -16,6 +16,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
|
|
|
|
load_llvm_config()
|
|
construct_compiler_rt_default_triple()
|
|
+ if ("${COMPILER_RT_DEFAULT_TARGET_TRIPLE}" MATCHES ".*hf$")
|
|
+ if (${COMPILER_RT_DEFAULT_TARGET_ARCH} MATCHES "^arm")
|
|
+ set(COMPILER_RT_DEFAULT_TARGET_ARCH "armhf")
|
|
+ endif()
|
|
+ endif()
|
|
|
|
if(APPLE)
|
|
include(CompilerRTDarwinUtils)
|