forked from OSchip/llvm-project
[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
This commit is contained in:
parent
77632422bc
commit
3f9519b768
|
@ -24,7 +24,9 @@
|
|||
#include <ntsecapi.h> // UNICODE_STRING
|
||||
#include <ntstatus.h>
|
||||
#include <psapi.h>
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment(lib, "psapi.lib")
|
||||
#endif
|
||||
|
||||
enum SYSTEM_INFORMATION_CLASS {
|
||||
SystemProcessInformation = 5
|
||||
|
|
Loading…
Reference in New Issue