Skip to content

Fix argument forwarding to LLVM on Windows #9344

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

Merged
merged 1 commit into from
Jul 10, 2021

Conversation

SpexGuy
Copy link
Contributor

@SpexGuy SpexGuy commented Jul 9, 2021

Fixes #9225
Might also fix other windows issues like #9002

@SpexGuy SpexGuy requested a review from andrewrk July 9, 2021 22:58
@mjoerussell
Copy link

For what it's worth, this has not fixed #9002 or #9124 for my project.

@SpexGuy
Copy link
Contributor Author

SpexGuy commented Jul 10, 2021

Yeah I'm tracking 9002 down now, it's definitely a different bug.

Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as this doesn't break non-Windows targets, looks good. How is it getting the argc, argv with this change?

@SpexGuy
Copy link
Contributor Author

SpexGuy commented Jul 10, 2021

Zig is getting argc/argv the same way it always has, building a modified version for llvm, and then passing that in. LLVM just doesn't ignore those values on windows anymore.

@andrewrk andrewrk merged commit 84a544f into ziglang:master Jul 10, 2021
@andrewrk andrewrk deleted the fix-llvm-args branch July 10, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows: zig.exe: error: not ranlib, ar, lib or dlltool
3 participants