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

Fix #3891 breaking builds for Zig v0.11.0 #3896

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

iarkn
Copy link
Contributor

@iarkn iarkn commented Apr 4, 2024

The changes brought by #3891 uses std.process.Child.run which was renamed from std.process.Child.exec in Zig version 0.11.0, resulting in an error when trying to build raylib with Zig version 0.11.0. This commit adds a version check to use the appropriate function names.

Additionally, the linux_display_backend configuration option is added so users can set it when running zig build with the -D option or when using raylib as a dependency.

Tested with Zig version 0.11.0 and version 0.12.0-dev.3522+b88ae8dbd.

Resolves #3895.

The changes brought by raysan5#3891 uses `std.process.Child.run` which was
renamed from `std.process.Child.exec` in Zig version 0.11.0. This commit
adds a version check to use the appropriate function names.

Additionally, the `linux_display_backend` configuration option is added
so users can set it when running `zig build` with the `-D` option or
when using raylib as a dependency.
@raysan5 raysan5 merged commit 414229b into raysan5:master Apr 5, 2024
@raysan5
Copy link
Owner

raysan5 commented Apr 5, 2024

@iarkn thanks for the review!

@ProIcons
Copy link
Contributor

ProIcons commented Apr 9, 2024

Thank @iarkn completely missed that on my pr!

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.

[Zig] Zig build fails to compile
3 participants