mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-11-02 16:00:02 +00:00
patch to fix compiler-rt builtins default arch detection for armhf
by adding the same armhf target triple handling used for compiler-rt libs
This commit is contained in:
parent
d62d68611c
commit
b2fc856dce
18
debian/patches/compilerrt-builtins-arch-fix-armhf.diff
vendored
Normal file
18
debian/patches/compilerrt-builtins-arch-fix-armhf.diff
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
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)
|
||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -148,3 +148,4 @@ libclc-fix-prepare_builtins-rpath.diff
|
||||
libcxx-libatomic-only-with-gcc-rtlib.diff
|
||||
libcxxabi-fix-link-builtins.diff
|
||||
llvm-runtimes-builtins-build-check.diff
|
||||
compilerrt-builtins-arch-fix-armhf.diff
|
||||
|
||||
Loading…
Reference in New Issue
Block a user