Skip to content

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Jun 26, 2021

Fixes #9210.

Note that this is just intended as a stopgap. The syntax isn't exactly the same as if you're working with lld-link directly, and we should probably think about doing this by default for DLLs.

@alexrp
Copy link
Member Author

alexrp commented Jul 3, 2021

I don't know how decisions are made wrt what changes meet the bar for a patch release of Zig, but fwiw, this PR (and to a lesser extent #9222 and #9223) is blocking my work on zig-msbuild-sdk. So it would be great if this could make it into 0.8.1.

@kkartaltepe
Copy link
Contributor

I think support for the --out-implib syntax from ld can be added to this as well so it can support both calling conventions? If so I can close my parallel PR.

@alexrp
Copy link
Member Author

alexrp commented Jul 10, 2021

I think I like the approach in your PR better than using lld_argv to pass the option through. I'll leave some comments over there.

@alexrp
Copy link
Member Author

alexrp commented Jul 10, 2021

Closing in favor of #9347.

@alexrp alexrp closed this Jul 10, 2021
@alexrp alexrp deleted the linker-implib-option branch July 10, 2021 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a DLL on Windows with zig cc does not produce an import library (.lib)

2 participants