build.zig: Clarify build error
This commit is contained in:
parent
9b9c72eb0d
commit
ddef3557ba
|
|
@ -171,10 +171,10 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
|
||||||
if (options.linux_display_backend == .Wayland or options.linux_display_backend == .Both) {
|
if (options.linux_display_backend == .Wayland or options.linux_display_backend == .Both) {
|
||||||
_ = b.findProgram(&.{"wayland-scanner"}, &.{}) catch {
|
_ = b.findProgram(&.{"wayland-scanner"}, &.{}) catch {
|
||||||
std.log.err(
|
std.log.err(
|
||||||
\\ Wayland may not be installed on the system.
|
\\ `wayland-scanner` may not be installed on the system.
|
||||||
\\ You can switch to X11 in your `build.zig` by changing `Options.linux_display_backend`
|
\\ You can switch to X11 in your `build.zig` by changing `Options.linux_display_backend`
|
||||||
, .{});
|
, .{});
|
||||||
@panic("No Wayland");
|
@panic("`wayland-scanner` not found");
|
||||||
};
|
};
|
||||||
raylib.defineCMacro("_GLFW_WAYLAND", null);
|
raylib.defineCMacro("_GLFW_WAYLAND", null);
|
||||||
raylib.linkSystemLibrary("wayland-client");
|
raylib.linkSystemLibrary("wayland-client");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user