[Openmp-commits] [openmp] [openmp][testing] disable check targets if not building with clang (PR #71866)

Shilei Tian via Openmp-commits openmp-commits at lists.llvm.org
Fri Nov 10 12:02:17 PST 2023


shiltian wrote:

> Which issue do you mean?
https://reviews.llvm.org/D149617
 
> > In standalone build, we don't need to export `omp` to LLVM.
> 
> You don't need but I would like it - as I mentioned, it's useful for other projects that might want to use `libomp` (such as MLIR).
That's two separate things. This "export" is to export to LLVM. When OpenMP is built standalone, there is no "LLVM" to export to, which I think will cause CMake error. When OpenMP is not built standalone, which means it is built in-tree, there will be a LLVM out there to accept targets.

In your case, you worked around some build issues by forcing `OPENMP_STANDALONE_BUILD` to `TRUE` while in fact it is not.

https://github.com/llvm/llvm-project/pull/71866


More information about the Openmp-commits mailing list