[Openmp-commits] [PATCH] D103545: [NFC][libomptarget] Reduce the dependency on libelf
Ron Lieberman via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 18 05:32:06 PDT 2021
ronlieb added a comment.
i forgot to mention that the first problem i encountered with this patch is that elf_common.cpp has difficulties finding its LLVM header files.
i am reporting that issue. For me, the fPIC relocatables might be a downstream issue, still looking into that one.
for the header file issue, i cobbled this up
add to end of file openmp/libomptarget/plugins/common/elf_common/CMakeLists.txt
include_directories(${LIBOMPTARGET_LLVM_INCLUDE_DIRS})
and added a cmake definition kind of like:
-DLIBOMPTARGET_LLVM_INCLUDE_DIRS=/<blah>/llvm-project/llvm/include
A person more versed in CMake might have a better solution, hope so.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103545/new/
https://reviews.llvm.org/D103545
More information about the Openmp-commits
mailing list