build: update Zig version check
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
742b87709f
commit
b72f0e11b6
1 changed files with 7 additions and 7 deletions
14
build.zig
14
build.zig
|
|
@ -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(
|
fn buildExamples(
|
||||||
b: *std.Build,
|
b: *std.Build,
|
||||||
optimize: std.builtin.OptimizeMode,
|
optimize: std.builtin.OptimizeMode,
|
||||||
|
|
@ -758,3 +751,10 @@ fn buildCoreExamples(
|
||||||
run_step.dependOn(&app.run.step);
|
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}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue