From: LLVM Packaging Team Date: Sun, 1 Jan 2023 14:42:15 +0000 (+0000) Subject: compilerrt-builtins-arch-fix-armhf X-Git-Tag: archive/raspbian/1%14.0.6-10+rpi1~1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0cd2f02f62b4bb07b51f4cde35cbb820a1f3eb75;p=llvm-toolchain-14.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 ea5ad9cdb8..63f57abdcd 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -27,6 +27,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) 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() include(SetPlatformToolchainTools) if(APPLE)