[Openmp-commits] [PATCH] D130926: [OpenMP][libomp] Detect if test compiler has omp.h

Michael Kruse via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Aug 1 13:30:11 PDT 2022


Meinersbur added a comment.

Ideally, it would use the that comes with libomp (`${CMAKE_BINARY_DIR}/runtime/src/omp.h`in the build dir, generated from https://github.com/llvm/llvm-project/blob/main/openmp/runtime/src/include/omp.h.var). Only the install script copies it over to `${CMAKE_INSTALL_DIR}/lib/clang/15.0.0/include/omp.h` where it can actually be found.

This is the same problem that one cannot just use the Clang from the build directory for OpenMP since `libomp.so` as well as `omp.h` are in non-standard locations in the build directory layout. For Clang itself, all the headers are copied `../lib/clang/include` such that it is possible to use it (including in regression tests) without installing. It would be nice if we could do the same for OpenMP.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130926/new/

https://reviews.llvm.org/D130926



More information about the Openmp-commits mailing list