# CLI: detect MinGW-flavored static libraries · gitcafe/zig

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

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

Visibility: public

Requested revision: ba127058d1fcf3ca042794244eee052915998b1a

Requested commit: ba127058d1fcf3ca042794244eee052915998b1a

Commit: ba127058d1fcf3ca042794244eee052915998b1a

Tree: 6656d5e03d77e22aef099379174cd9e798a71e2f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
CLI: detect MinGW-flavored static libraries

Ideally on Windows, static libraries look like "foo.lib". However, CMake
and other build systems will unfortunately produce static libraries that
instead look like "libfoo.a". This patch makes Zig's CLI resolve "-lfoo"
arguments into static libraries that match this other pattern.

This patch fixes an issue with zig-bootstrap where it won't find the
LLVM, Clang, and LLD libraries.

```

## Parents

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

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