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

std.zig.system: use both PATH and hardcoded locations to find env #21540

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

BratishkaErik
Copy link
Contributor

@BratishkaErik BratishkaErik commented Sep 28, 2024

Should help systems that have main env binary in different location than hardcoded /usr/bin/env during build (not neccessarily always), like Nix/Guix, Termux, Gentoo Prefix etc.

Theoretically should close following issues, but it needs more testing from affected users:
#12156
#14146
#14577
#15898

Source for logic: #14146 (comment)

@alexrp
Copy link
Member

alexrp commented Oct 5, 2024

This has a merge conflict that looks to stem from #21430.

@BratishkaErik
Copy link
Contributor Author

This has a merge conflict that looks to stem from #21430.

Thanks, fixed :)

@andrewrk andrewrk merged commit 0595feb into ziglang:master Jan 21, 2025
10 checks passed
@andrewrk
Copy link
Member

Thanks.

@andrewrk andrewrk added the release notes This PR should be mentioned in the release notes. label Jan 21, 2025
@alexrp alexrp mentioned this pull request Jan 21, 2025
andrewrk added a commit that referenced this pull request Jan 21, 2025
It caused an assertion failure when building Zig from source.

This reverts commit 0595feb, reversing
changes made to 744771d.

closes #22566
closes #22568
@andrewrk
Copy link
Member

Reverted in 0bacb79

Fri3dNstuff pushed a commit to Fri3dNstuff/zig that referenced this pull request Jan 27, 2025
…v-in-path"

It caused an assertion failure when building Zig from source.

This reverts commit 0595feb, reversing
changes made to 744771d.

closes ziglang#22566
closes ziglang#22568
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes This PR should be mentioned in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants