unbreak-atomic-mips
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 23 Jul 2022 21:01:02 +0000 (22:01 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 23 Jul 2022 21:01:02 +0000 (22:01 +0100)
===================================================================

Gbp-Pq: Name unbreak-atomic-mips.diff

compiler-rt/lib/scudo/standalone/CMakeLists.txt

index ae5c354768c89fa829ca361fc6adb88dbc2fd330..91311a065af819e2f372c5ed14cd65a413e0772e 100644 (file)
@@ -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}