[Openmp-commits] [PATCH] D111038: [openmp] [elf_common] Fix linking against LLVM dylib

Michał Górny via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 4 00:29:55 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0873b9bef4e0: [openmp] [elf_common] Fix linking against LLVM dylib (authored by mgorny).
Herald added a project: OpenMP.

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111038

Files:
  openmp/libomptarget/plugins/common/elf_common/CMakeLists.txt


Index: openmp/libomptarget/plugins/common/elf_common/CMakeLists.txt
===================================================================
--- openmp/libomptarget/plugins/common/elf_common/CMakeLists.txt
+++ openmp/libomptarget/plugins/common/elf_common/CMakeLists.txt
@@ -16,6 +16,9 @@
 set_property(TARGET elf_common PROPERTY POSITION_INDEPENDENT_CODE ON)
 llvm_update_compile_flags(elf_common)
 set(LINK_LLVM_LIBS LLVMBinaryFormat LLVMObject LLVMSupport)
+if (LLVM_LINK_LLVM_DYLIB)
+  set(LINK_LLVM_LIBS LLVM)
+endif()
 target_link_libraries(elf_common INTERFACE ${LINK_LLVM_LIBS})
 include_directories(${LIBOMPTARGET_LLVM_INCLUDE_DIRS})
 add_dependencies(elf_common ${LINK_LLVM_LIBS})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111038.376818.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211004/84bd9b45/attachment.bin>


More information about the Openmp-commits mailing list