Skip to content

Commit 8c8868f

Browse files
committed
[lld-macho] Link against libatomic when necessary
In Driver.cpp std::atomic<uint64_t> is used which may need libatomic.
1 parent 89f692a commit 8c8868f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/MachO/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ add_lld_library(lldMachO
5858
LINK_LIBS
5959
lldCommon
6060
${LLVM_PTHREAD_LIB}
61+
${LLVM_ATOMIC_LIB}
6162

6263
DEPENDS
6364
MachOOptionsTableGen

0 commit comments

Comments
 (0)