don't error if gtk4 pkg-config configuration could not be found (#4683)

this prevents issues with people running `zig build --help` without gtk4
development stuff installed

same as #4546
This commit is contained in:
Mitchell Hashimoto
2025-01-06 06:12:36 -08:00
committed by GitHub

View File

@ -145,7 +145,6 @@ pub fn build(b: *std.Build) !void {
if (std.mem.indexOf(u8, stdout.items, "wayland")) |_| wayland = true; if (std.mem.indexOf(u8, stdout.items, "wayland")) |_| wayland = true;
} else { } else {
std.log.warn("pkg-config: {s} with code {d}", .{ @tagName(term), code }); std.log.warn("pkg-config: {s} with code {d}", .{ @tagName(term), code });
return error.Unexpected;
} }
}, },
inline else => |code| { inline else => |code| {