[compiler-rt] a1ec3c5 - [scudo] Link against libatomic on all MIPS targets
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 00:00:22 PDT 2022
Author: John Paul Adrian Glaubitz
Date: 2022-05-26T00:00:16-07:00
New Revision: a1ec3c5a8885d06f40859af6a310dbf32d479cdc
URL: https://github.com/llvm/llvm-project/commit/a1ec3c5a8885d06f40859af6a310dbf32d479cdc
DIFF: https://github.com/llvm/llvm-project/commit/a1ec3c5a8885d06f40859af6a310dbf32d479cdc.diff
LOG: [scudo] Link against libatomic on all MIPS targets
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D126418
Added:
Modified:
compiler-rt/lib/scudo/standalone/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/CMakeLists.txt b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
index ae5c354768c89..e293db18d30ed 100644
--- a/compiler-rt/lib/scudo/standalone/CMakeLists.txt
+++ b/compiler-rt/lib/scudo/standalone/CMakeLists.txt
@@ -140,6 +140,10 @@ append_list_if(COMPILER_RT_HAS_LIBPTHREAD -pthread SCUDO_LINK_FLAGS)
append_list_if(FUCHSIA zircon SCUDO_LINK_LIBS)
+if(COMPILER_RT_DEFAULT_TARGET_ARCH MATCHES "mips|mips64|mipsel|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}
More information about the llvm-commits
mailing list