Skip to content

Commit b328887

Browse files
committed
more work
1 parent 3d5a31b commit b328887

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/raylib/build.zig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ pub fn build(b: *std.Build) void {
5757
.optimize = optimize,
5858
.android_api_version = @as([]const u8, b.fmt("{}", .{@intFromEnum(apk.api_level)})),
5959
.android_ndk = @as([]const u8, apk.ndk.path),
60+
// NOTE(jae): 2025-09-19
61+
// Avoid compilation errors on Linux systems that don't have 'wayland-scanner'
62+
// ie.
63+
// $ zig build -Dandroid=true --verbose
64+
// `wayland-scanner` may not be installed on the system.
65+
// You can switch to X11 in your `build.zig` by changing `Options.linux_display_backend`
66+
.linux_display_backend = .X11, // Avoid build issues on Linux systems
6067
})
6168
else
6269
b.dependency("raylib_zig", .{

0 commit comments

Comments
 (0)