[OpenMP][libomp] Detect if test compiler has omp.h
authorJonathan Peyton <jonathan.l.peyton@intel.com>
Mon, 1 Aug 2022 18:43:18 +0000 (13:43 -0500)
committerTobias Hieta <tobias@hieta.se>
Tue, 9 Aug 2022 11:30:31 +0000 (13:30 +0200)
commit63be0bcb6d302910e11df2c305ed707ca6ee7421
treea94e250fec9f7a53f4db6bef8f386dd051903075
parent65d2e9b4e123d9ea472f0f37a5ca64d9ca01bde1
[OpenMP][libomp] Detect if test compiler has omp.h

omp50_taskdep_depobj.c relies on the test compiler's omp.h file.
If the test compiler does not have an omp.h file, then use the one
within the build tree.

Fixes: https://github.com/llvm/llvm-project/issues/56820
Differential Revision: https://reviews.llvm.org/D131000

(cherry picked from commit 9cf6511bff97007401238f6cff6bf80cb9af04a5)
openmp/cmake/DetectTestCompiler/CMakeLists.txt
openmp/cmake/OpenMPTesting.cmake
openmp/runtime/test/CMakeLists.txt
openmp/runtime/test/lit.cfg
openmp/runtime/test/lit.site.cfg.in