build: better variable name for supported zig version
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
d686078fcf
commit
0ea4948b8b
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ pub fn addPaths(step: *std.Build.Step.Compile) void {
|
|||
}
|
||||
|
||||
comptime {
|
||||
const min_zig = std.SemanticVersion.parse("0.12.0-dev.2063+804cee3b9") catch unreachable;
|
||||
if (builtin.zig_version.order(min_zig) != .eq) {
|
||||
const supported_zig = std.SemanticVersion.parse("0.12.0-dev.2063+804cee3b9") catch unreachable;
|
||||
if (builtin.zig_version.order(supported_zig) != .eq) {
|
||||
@compileError(std.fmt.comptimePrint("unsupported Zig version ({}). Required Zig version 2024.1.0-mach: https://machengine.org/about/nominated-zig/#202410-mach", .{builtin.zig_version}));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue