0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

windows: fix not finding system libs when compiling for *-windows-msvc

When compiling for *-windows-msvc, find the native libc_installation and
add the lib dirs to lib_dirs, so that system libs can be found.

Previously, `version` and `ole32` were detected via the mingw.libExists logic,
even on .msvc, which was a false positive. This detection logic for mingw doesn't
find uuid.lib, which was the failure that triggered this bugfix.

Only build the issue_5825 test if the native target is x86_64-windows-msvc,
since it requires the .msvc abi.
This commit is contained in:
kcbanner 2023-09-21 02:26:05 -04:00 • committed by Andrew Kelley
commit 70563aeac3
2 changed files with 27 additions and 10 deletions