[PATCH] D81921: [llvm] Avoid linking llvm-cfi-verify to duplicate libs

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 17 10:13:52 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG352558e69b36: [llvm] Avoid linking llvm-cfi-verify to duplicate libs (authored by mgorny).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81921/new/

https://reviews.llvm.org/D81921

Files:
  llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt


Index: llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
===================================================================
--- llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
+++ llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
@@ -7,13 +7,17 @@
   )
 
 llvm_update_compile_flags(LLVMCFIVerify)
-llvm_map_components_to_libnames(libs
-  DebugInfoDWARF
-  MC
-  MCParser
-  Object
-  Support
-  Symbolize
-  )
+if (LLVM_LINK_LLVM_DYLIB)
+  set(libs LLVM)
+else()
+  llvm_map_components_to_libnames(libs
+    DebugInfoDWARF
+    MC
+    MCParser
+    Object
+    Support
+    Symbolize
+    )
+endif()
 target_link_libraries(LLVMCFIVerify ${libs})
 set_target_properties(LLVMCFIVerify PROPERTIES FOLDER "Libraries")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81921.271404.patch
Type: text/x-patch
Size: 706 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200617/c8a7861c/attachment.bin>


More information about the llvm-commits mailing list