From: LLVM Packaging Team Date: Mon, 16 Oct 2023 13:14:10 +0000 (+0000) Subject: compilerrt-builtins-arch-fix-armhf X-Git-Tag: archive/raspbian/1%16.0.6-15_deb12u1+rpi1^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d89b895e910f82a4a4f743898b3fecc0bcf2c175;p=llvm-toolchain-16.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 2fc7052289..65d43452ab 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -36,6 +36,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)