Update minimum Zig version in build.zig

This is the version required to use the new std.os.O struct format from
https://github.com/mitchellh/ghostty/pull/1509.
This commit is contained in:
Gregory Anders
2024-02-18 09:43:13 -06:00
parent 396899a3a9
commit 4df6b36713

View File

@ -24,7 +24,7 @@ const Command = @import("src/Command.zig");
// but we liberally update it. In the future, we'll be more careful about // but we liberally update it. In the future, we'll be more careful about
// using released versions so that package managers can integrate better. // using released versions so that package managers can integrate better.
comptime { comptime {
const required_zig = "0.12.0-dev.2701+d18f52197"; const required_zig = "0.12.0-dev.2711+f995c1b08";
const current_zig = builtin.zig_version; const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable; const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
if (current_zig.order(min_zig) == .lt) { if (current_zig.order(min_zig) == .lt) {