From 938a8122dc86c12d86b21e57d91444cf1dcf8db0 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Thu, 11 Jan 2024 14:15:09 +0100 Subject: [PATCH] unbreak-atomic-mips =================================================================== Gbp-Pq: Name unbreak-atomic-mips.diff --- compiler-rt/lib/scudo/standalone/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt index 094c23a73f..3b5789f9da 100644 --- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt +++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt @@ -187,6 +187,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} -- 2.30.2