glfw: fix typo prevents building for Wayland

This commit is contained in:
Ali Chraghi 2021-11-16 04:09:08 +03:30 committed by Stephen Gutekanst
parent fd703e98e4
commit 50719f5347

View file

@ -123,7 +123,7 @@ fn buildLibrary(b: *Builder, step: *std.build.LibExeObjStep, options: Options) *
var general_sources = std.ArrayList([]const u8).init(b.allocator); var general_sources = std.ArrayList([]const u8).init(b.allocator);
const flag = switch (options.linux_window_manager) { const flag = switch (options.linux_window_manager) {
.X11 => "-D_GLFW_X11", .X11 => "-D_GLFW_X11",
.Wayland => "_D_GLFW_WAYLAND", .Wayland => "-D_GLFW_WAYLAND",
}; };
for ([_][]const u8{ for ([_][]const u8{
// General Linux-like sources // General Linux-like sources