[PATCH] D136281: [lld] [CMake] Link liblldCOFF against libatomic when necessary
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 13:08:24 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf0b451c77f14: Link liblldCOFF against libatomic when necessary (authored by thesamesam, committed by mgorny).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136281/new/
https://reviews.llvm.org/D136281
Files:
lld/COFF/CMakeLists.txt
lld/Common/CMakeLists.txt
Index: lld/Common/CMakeLists.txt
===================================================================
--- lld/Common/CMakeLists.txt
+++ lld/Common/CMakeLists.txt
@@ -1,9 +1,3 @@
-set(LLD_SYSTEM_LIBS ${LLVM_PTHREAD_LIB})
-
-if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
- list(APPEND LLD_SYSTEM_LIBS atomic)
-endif()
-
find_first_existing_vc_file("${LLVM_MAIN_SRC_DIR}" llvm_vc)
find_first_existing_vc_file("${LLD_SOURCE_DIR}" lld_vc)
@@ -54,7 +48,8 @@
Target
LINK_LIBS
- ${LLD_SYSTEM_LIBS}
+ ${LLVM_PTHREAD_LIB}
+ ${LLVM_ATOMIC_LIB}
DEPENDS
intrinsics_gen
Index: lld/COFF/CMakeLists.txt
===================================================================
--- lld/COFF/CMakeLists.txt
+++ lld/COFF/CMakeLists.txt
@@ -44,6 +44,7 @@
LINK_LIBS
lldCommon
${LLVM_PTHREAD_LIB}
+ ${LLVM_ATOMIC_LIB}
DEPENDS
COFFOptionsTableGen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136281.473008.patch
Type: text/x-patch
Size: 852 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221103/a5516631/attachment-0001.bin>
More information about the llvm-commits
mailing list