Update build.zig to work with 0.16#5487
Merged
Merged
Conversation
Owner
|
@mdm5995 thanks for the update... but would it be fine for any Zig user? |
|
Well, I can only speak for myself, but the new update, as far as I know, made it incompatible with the latest stable release for Zig 0.15.2; it wouldn’t build until I changed to the beta dev build 1.16. So it would be a good idea to update build.zig
|
PavoReal
added a commit
to PavoReal/raylib-zig-0.16
that referenced
this pull request
Feb 7, 2026
Adapt to Zig 0.16 breaking API changes: - std.fs.cwd() replaced with std.Io.Dir.cwd() with explicit io param - std.process.getEnvVarOwned() replaced with b.graph.environ_map.get() - Bump minimum version to 0.16.0-dev Ref: raysan5#5487, raysan5#5520 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just a few small changes to update the build.zig to work with the latest breaking changes for zig v16