[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)
committerJonathan Peyton <jonathan.l.peyton@intel.com>
Tue, 2 Aug 2022 22:05:56 +0000 (17:05 -0500)
commit9cf6511bff97007401238f6cff6bf80cb9af04a5
treee3f186fe3298fee079e7a3c72cdb40fb746a0e75
parentee4d8150083792242b3c56e5a7f9fe8aaa374b72
[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
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