From 0ea4948b8b4a470284b8b72780e680321d7ffd29 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 14 Jan 2024 18:28:22 -0700 Subject: [PATCH] build: better variable name for supported zig version Signed-off-by: Stephen Gutekanst --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 7c0004d44..ed516abf7 100644 --- a/build.zig +++ b/build.zig @@ -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})); } }