# COFF linking: fix incorrectly passing \.dll instead of \.lib · gitcafe/zig

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

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

Visibility: public

Requested revision: c8b8f0ea13ee48db929e1340ee9512974ed986ee

Requested commit: c8b8f0ea13ee48db929e1340ee9512974ed986ee

Commit: c8b8f0ea13ee48db929e1340ee9512974ed986ee

Tree: dfdabaae521d58185893b1b58acaa9129a24faf7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
COFF linking: fix incorrectly passing .dll instead of .lib

commit 9d1816111d1d30e18b8cb43a4aa31c194fb204c4 used the "output path"
as the path for passing shared library artifact paths to the Zig CLI.
For Windows, this was incorrect because it would pass the .dll instead
of the .lib file. This commit passes the "output lib path" instead,
which makes it pass the .lib path in case of a .dll on Windows.

This way the linker does not complain and say, "bad file type. Did you
specify a DLL instead of an import library?"

```

## Parents

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

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