Skip to content

Commit a1ec3c5

Browse files
glaubitzMaskRay
authored andcommitted
[scudo] Link against libatomic on all MIPS targets
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D126418
1 parent 1e91149 commit a1ec3c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ append_list_if(COMPILER_RT_HAS_LIBPTHREAD -pthread SCUDO_LINK_FLAGS)
140140

141141
append_list_if(FUCHSIA zircon SCUDO_LINK_LIBS)
142142

143+
if(COMPILER_RT_DEFAULT_TARGET_ARCH MATCHES "mips|mips64|mipsel|mips64el")
144+
list(APPEND SCUDO_LINK_LIBS atomic)
145+
endif()
146+
143147
if(COMPILER_RT_HAS_SCUDO_STANDALONE)
144148
add_compiler_rt_object_libraries(RTScudoStandalone
145149
ARCHS ${SCUDO_STANDALONE_SUPPORTED_ARCH}

0 commit comments

Comments
 (0)