[all-commits] [llvm/llvm-project] 0873b9: [openmp] [elf_common] Fix linking against LLVM dylib

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0873b9bef4e03b4cfc44a4946c11103c763055df
      https://github.com/llvm/llvm-project/commit/0873b9bef4e03b4cfc44a4946c11103c763055df
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-10-04 (Mon, 04 Oct 2021)

  Changed paths:
    M openmp/libomptarget/plugins/common/elf_common/CMakeLists.txt

  Log Message:
  -----------
  [openmp] [elf_common] Fix linking against LLVM dylib

The hand-rolled linking logic in elf_common does not account for
the possibility of using LLVM dylib rather than a dozen static
libraries.  Since it does not seem to be easily convertible
to add_llvm_library, just hand-roll support for LLVM_LINK_LLVM_DYLIB.
This is necessary to support stand-alone builds against installed LLVM.

Differential Revision: https://reviews.llvm.org/D111038




More information about the All-commits mailing list