# windows: fix not finding system libs when compiling for \*\-windows-msvc · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/70563aeac3e9efee7e8fb24744bc97197fc0ca9b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 70563aeac3e9efee7e8fb24744bc97197fc0ca9b

Requested commit: 70563aeac3e9efee7e8fb24744bc97197fc0ca9b

Commit: 70563aeac3e9efee7e8fb24744bc97197fc0ca9b

Tree: fc58b7cf3ee8340c46c13a4569caeb3651741d8e

Author: kcbanner

Committer: Andrew Kelley

## Message

```
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.

```

## Parents

- [de4d1ea250f37c03cf2eec6c6bdf7436c8816893](https://git.cafe/gitcafe/zig/commit/de4d1ea250f37c03cf2eec6c6bdf7436c8816893?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/70563aeac3e9efee7e8fb24744bc97197fc0ca9b?format=markdown)
