Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "--version" linker argument #16154

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

matteo-briani
Copy link
Contributor

@matteo-briani matteo-briani commented Jun 23, 2023

This PR addresses #15549 : zig cc -Wl,--version not understood by the linker

With this PR, zig cc and zig c++ support -Wl,--version argument.
The expected output is to print

zig ld <build-version>

and exit.

@matteo-briani matteo-briani marked this pull request as draft June 23, 2023 08:26
@matteo-briani matteo-briani marked this pull request as ready for review June 23, 2023 14:27
@matteo-briani matteo-briani changed the title Support "--version" and "-v" linker arguments Support "--version" linker argument Jun 23, 2023
@andrewrk andrewrk merged commit 8ced903 into ziglang:master Jun 24, 2023
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.

2 participants