From: LLVM Packaging Team Date: Tue, 22 Nov 2022 09:58:27 +0000 (+0000) Subject: unbreak-atomic-mips X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~4^2^2^2^2~23 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1970bb8ef4832447753282fd702f87f8caf4cbe0;p=llvm-toolchain-16.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 4b586bc662..58b012d8f4 100644 --- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt @@ -145,6 +145,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}