[PATCH] D132799: Make sure libLLVM users link with libatomic if needed
Aaron Puchert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 11 11:46:01 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG44ffc13f2eb6: Make sure libLLVM users link with libatomic if needed (authored by aaronpuchert).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132799/new/
https://reviews.llvm.org/D132799
Files:
llvm/tools/llvm-shlib/CMakeLists.txt
Index: llvm/tools/llvm-shlib/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-shlib/CMakeLists.txt
+++ llvm/tools/llvm-shlib/CMakeLists.txt
@@ -63,6 +63,9 @@
target_link_libraries(LLVM PRIVATE ${LIB_NAMES})
+ get_property(SYSTEM_LIBS TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS)
+ target_link_libraries(LLVM PUBLIC ${SYSTEM_LIBS})
+
if (APPLE)
set_property(TARGET LLVM APPEND_STRING PROPERTY
LINK_FLAGS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132799.459386.patch
Type: text/x-patch
Size: 492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220911/6c25f3a3/attachment.bin>
More information about the llvm-commits
mailing list