Skip to content

Commit b72f0e1

Browse files
author
Stephen Gutekanst
committed
build: update Zig version check
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
1 parent 742b877 commit b72f0e1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

build.zig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -547,13 +547,6 @@ fn sdkPath(comptime suffix: []const u8) []const u8 {
547547
};
548548
}
549549

550-
comptime {
551-
const supported_zig = std.SemanticVersion.parse("0.13.0-dev.351+64ef45eb0") catch unreachable;
552-
if (builtin.zig_version.order(supported_zig) != .eq) {
553-
@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}));
554-
}
555-
}
556-
557550
fn buildExamples(
558551
b: *std.Build,
559552
optimize: std.builtin.OptimizeMode,
@@ -758,3 +751,10 @@ fn buildCoreExamples(
758751
run_step.dependOn(&app.run.step);
759752
}
760753
}
754+
755+
comptime {
756+
const supported_zig = std.SemanticVersion.parse("0.13.0-dev.351+64ef45eb0") catch unreachable;
757+
if (builtin.zig_version.order(supported_zig) != .eq) {
758+
@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}));
759+
}
760+
}

0 commit comments

Comments
 (0)