In libomptarget we use a couple of functions from libomp, but we didn't link
libomptarget against libomp. That will not work on some platforms such
as macOS. A linker error will be encountered because those symbols are not resolved
at link time when building libomptarget. This patch simply makes libomptarget
link agains libomp, makes it a "user" of libomp. I think this will not break
the policies between libomp and libomptarget.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
We observed some change in CMake behaviour in the last 24 hours and we suspect that this revision might be the cause of it.
Originality, we used to enable openmp with the -DLLVM_ENABLE_PROJECTS="....;openmp" flag, but this now produces the following error:
CMake Error: install(EXPORT "LLVMExports" ...) includes target "omptarget" which requires target "omp" that is not in any export set. CMake Error in cmake/modules/CMakeLists.txt: export called with target "omptarget" which requires target "omp" that is not in any export set.
Switching to use the -DLLVM_ENABLE_RUNTIMES="openmp" seem fix this issue.
I was just wondering if this is intended behaviour.
Comment Actions
This broke our ability to publish Sphinx documentation, it seems: https://lab.llvm.org/buildbot/#/builders/89/builds/40301 so hopefully we can get a quick fix or revert.
Comment Actions
Thank you! I can confirm we're publishing documentation again, so that's appreciated!