[OpenMP] Fix an OpenMP Windows build problem
authorVadim Paretsky <b-vadipa@microsoft.com>
Tue, 28 Mar 2023 00:20:54 +0000 (17:20 -0700)
committerVadim Paretsky <b-vadipa@microsoft.com>
Tue, 28 Mar 2023 00:20:54 +0000 (17:20 -0700)
commit30ce6fbfaae4a6c03fe18d06163e696054a692cb
treebc20cc5dc7b13bbb6ccde5bd971a5735b409ab18
parent1b56f273b27114322187ea0509762671cdec9e84
[OpenMP] Fix an OpenMP Windows build problem

When building OpenMP as part of LLVM, CMAKE was generating incorrect
location references for OpenMP build's first step's artifacts being used
in regenerating its Windows import library in the second step. The fix is
to feed a dummy non-buildable, rather than buildable, source to CMAKE to
satisfy its source requirements removing the need to reference the first
step's artifacts in the second step altogether.

Differential Revision:https://reviews.llvm.org/D146894
openmp/runtime/src/CMakeLists.txt
openmp/runtime/src/kmp_dummy.txt [new file with mode: 0644]