Skip to content

Update build.zig to work with 0.16#5487

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
mdm5995:fix/zig16
Jan 11, 2026
Merged

Update build.zig to work with 0.16#5487
raysan5 merged 1 commit into
raysan5:masterfrom
mdm5995:fix/zig16

Conversation

@mdm5995
Copy link
Copy Markdown
Contributor

@mdm5995 mdm5995 commented Jan 11, 2026

Just a few small changes to update the build.zig to work with the latest breaking changes for zig v16

@raysan5 raysan5 merged commit 32e7732 into raysan5:master Jan 11, 2026
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Jan 11, 2026

@mdm5995 thanks for the update... but would it be fine for any Zig user?

@ToastyGoblin
Copy link
Copy Markdown

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 const min_ver = 0.15.1 to const min_ver = 0.16 inside the build.zig script to let Zig users know they have to change from the latest stable release build to the beta dev build.

@mdm5995 thanks for the update... but would it be fine for any Zig user?

raysan5 added a commit that referenced this pull request Jan 13, 2026
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>
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.

3 participants