Page MenuHomePhabricator

[OpenMP] Fix the check for libpsapi for i386

Authored by mstorsjo on Feb 12 2021, 1:48 AM.



check_library_exists fails for stdcall functions, because that check doesn't include the necessary headers (and thus fails with an undefined reference to _EnumProcessModules, when the import library symbol actually is called _EnumProcessModules@16).

Merge the two previous checks check_include_files and check_library_exists into one with check_c_source_compiles, and merge the variables that indicate whether it succeeded.

Diff Detail

Event Timeline

mstorsjo created this revision.Feb 12 2021, 1:48 AM
mstorsjo requested review of this revision.Feb 12 2021, 1:48 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: sstefan1. · View Herald Transcript
This revision is now accepted and ready to land.Feb 12 2021, 8:33 AM
This revision was automatically updated to reflect the committed changes.