From: LLVM Packaging Team Date: Mon, 23 Sep 2024 11:23:31 +0000 (+0200) Subject: unbreak-atomic-mips X-Git-Tag: archive/raspbian/1%19.1.3-1+rpi1~1^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=58ad9bc1b8f7c529fc1ac0feef88cd8ded968f4a;p=llvm-toolchain-19.git unbreak-atomic-mips =================================================================== Gbp-Pq: Name unbreak-atomic-mips.diff --- diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt index 60092005cc..e03d0a3cbf 100644 --- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt @@ -194,6 +194,13 @@ if(COMPILER_RT_DEFAULT_TARGET_ARCH MATCHES "mips|mips64|mipsel|mips64el") list(APPEND SCUDO_LINK_LIBS atomic) endif() +if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mipsel" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el") + list(APPEND SCUDO_LINK_LIBS atomic) +endif() + if(COMPILER_RT_HAS_SCUDO_STANDALONE) add_compiler_rt_object_libraries(RTScudoStandalone ARCHS ${SCUDO_STANDALONE_SUPPORTED_ARCH}