build: update Zig version check

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-06-02 19:00:43 -07:00
parent 742b87709f
commit b72f0e11b6

View file

@ -547,13 +547,6 @@ fn sdkPath(comptime suffix: []const u8) []const u8 {
};
}
comptime {
const supported_zig = std.SemanticVersion.parse("0.13.0-dev.351+64ef45eb0") catch unreachable;
if (builtin.zig_version.order(supported_zig) != .eq) {
@compileError(std.fmt.comptimePrint("unsupported Zig version ({}). Required Zig version 2024.3.0-mach: https://machengine.org/about/nominated-zig/#202430-mach", .{builtin.zig_version}));
}
}
fn buildExamples(
b: *std.Build,
optimize: std.builtin.OptimizeMode,
@ -758,3 +751,10 @@ fn buildCoreExamples(
run_step.dependOn(&app.run.step);
}
}
comptime {
const supported_zig = std.SemanticVersion.parse("0.13.0-dev.351+64ef45eb0") catch unreachable;
if (builtin.zig_version.order(supported_zig) != .eq) {
@compileError(std.fmt.comptimePrint("unsupported Zig version ({}). Required Zig version 2024.5.0-mach: https://machengine.org/about/nominated-zig/#202450-mach", .{builtin.zig_version}));
}
}