Skip to content

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