Skip to content

Commit

Permalink
don't error when gtk4 could not be found via pkg-config (#4546)
Browse files Browse the repository at this point in the history
running `zig build --help` was crashing for some people, I narrowed it
down to gtk4 not being installed however that shouldn't make the help
message not nor should it block glfw builds
  • Loading branch information
mitchellh authored Jan 3, 2025
2 parents fa30a04 + 6fd901f commit 1baf892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub fn build(b: *std.Build) !void {
break :x11 false;
}
std.log.warn("pkg-config: {s} with code {d}", .{ @tagName(term), code });
return error.Unexpected;
break :x11 false;
},
inline else => |code| {
std.log.warn("pkg-config: {s} with code {d}", .{ @tagName(term), code });
Expand Down

0 comments on commit 1baf892

Please sign in to comment.