From: LLVM Packaging Team Date: Sat, 5 Apr 2025 20:24:44 +0000 (+0200) Subject: compilerrt-builtins-arch-fix-armhf X-Git-Tag: archive/raspbian/1%18.1.8-18+rpi1^2~26 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ba6331c8a9f94cd11cc8fb2a2a977f385f82cff2;p=llvm-toolchain-18.git compilerrt-builtins-arch-fix-armhf fix builtins armhf default arch detection by adding the same armhf triple handling use for compiler-rt Gbp-Pq: Topic compiler-rt Gbp-Pq: Name compilerrt-builtins-arch-fix-armhf.diff --- diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 28ded8766f..2bfaa8fd47 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -29,6 +29,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) load_llvm_config() endif() 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() include(SetPlatformToolchainTools) if(APPLE)