[Openmp-commits] [PATCH] D104537: [Libomptarget] Add LLVM headers to elf plugin include directories

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Jun 18 07:39:56 PDT 2021


jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992.
Herald added a subscriber: mgorny.
jhuber6 requested review of this revision.
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.

Libelf depends on LLVM libraries but does not currently add their headers to the include path.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104537

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
@@ -22,3 +22,4 @@
 
 # Expose elf_common.h directory to the users of this library.
 target_include_directories(elf_common INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
+target_include_directories(elf_common PRIVATE ${LIBOMPTARGET_LLVM_INCLUDE_DIRS})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104537.353005.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210618/71229c11/attachment.bin>


More information about the Openmp-commits mailing list