From f5af82c5f9dd0e2c08d48a234353ca76ad1bee2f Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Sat, 4 Jun 2022 14:30:38 +0100 Subject: [PATCH] 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 --- compiler-rt/lib/builtins/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index 59d83631a5..36c0c98a84 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -17,6 +17,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) -- 2.30.2