Skip to content

native libc detection: respect spaces in CC env var #9043

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
Jun 9, 2021

Conversation

andrewrk
Copy link
Member

@andrewrk andrewrk commented Jun 8, 2021

Zig has detection for when it is accidentally being called recursively
when trying to find the native libc installation. However it was not
working, resulting in a cryptic failure, because zig tried to execute
a command which had spaces in it rather than tokenizing it.

This improves the user experience of zig cc for systems that Zig
does not support cross-compiling for.

Closes #8960

Zig has detection for when it is accidentally being called recursively
when trying to find the native libc installation. However it was not
working, resulting in a cryptic failure, because zig tried to execute
a command which had spaces in it rather than tokenizing it.

This improves the user experience of `zig cc` for systems that Zig
does not support cross-compiling for.

Closes #8960
@andrewrk
Copy link
Member Author

andrewrk commented Jun 8, 2021

cc @lun-4 this solves 1 of the issues from ziglang/zig-bootstrap#60

@andrewrk andrewrk merged commit d128ec3 into master Jun 9, 2021
@andrewrk andrewrk deleted the cc-env-var-tokenization branch June 9, 2021 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant