From: LLVM Packaging Team Date: Sun, 13 Feb 2022 13:04:40 +0000 (+0000) Subject: compilerrt-builtins-arch-fix-armhf X-Git-Tag: archive/raspbian/1%12.0.1-20+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c90b8045b950e19b49aaab30b64aca5561e6fdc4;p=llvm-toolchain-12.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: Name compilerrt-builtins-arch-fix-armhf.diff --- diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 73b6bead84..6d833885b2 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -16,6 +16,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() if(APPLE) include(CompilerRTDarwinUtils)