[OpenMP] Only use #pragma comment(lib, ...) in MSVC build configurations
authorMartin Storsjö <martin@martin.st>
Fri, 12 Feb 2021 09:24:00 +0000 (11:24 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 12 Feb 2021 19:55:31 +0000 (21:55 +0200)
commit3f9519b768ebe7a2731443bdc2d3178a005e8d7f
tree352de25ffe5339c38d8cff4122fecce11b2ada60
parent77632422bcca9800fe4733f470f1939db029c0ba
[OpenMP] Only use #pragma comment(lib, ...) in MSVC build configurations

MinGW build configurations don't support this pragma (unless
compiling with clang, with -fms-extensions, and linking with
lld), and at least clang warns about it.

This library does end up linked by the cmake files anyway (as
long as the check works properly).

Differential Revision: https://reviews.llvm.org/D96581
openmp/runtime/src/z_Windows_NT_util.cpp