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

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

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

Visibility: public

Requested revision: c7028ce0c612597b68ca900af036ec6aa5728f4f

Requested commit: c7028ce0c612597b68ca900af036ec6aa5728f4f

Commit: c7028ce0c612597b68ca900af036ec6aa5728f4f

Tree: f93cd04c7526e53c16d37ac31595759e2bf78f84

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

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

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