From: LLVM Packaging Team Date: Sun, 1 Jan 2023 14:42:15 +0000 (+0000) Subject: unbreak-atomic-mips X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~5^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b0e4dceb6ae669b4f42733c693327e27a634bb76;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 ae5c354768..91311a065a 100644 --- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt @@ -140,6 +140,13 @@ append_list_if(COMPILER_RT_HAS_LIBPTHREAD -pthread SCUDO_LINK_FLAGS) append_list_if(FUCHSIA zircon SCUDO_LINK_LIBS) +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}