From 9d463540bb9eea52d8c7e33dc0e3054bfb390434 Mon Sep 17 00:00:00 2001 From: 10aded <10aded-Streaming@protonmail.com> Date: Thu, 2 May 2024 15:34:13 -0400 Subject: [PATCH] fixed compiler version check --- build.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 6171f50..9765459 100644 --- a/build.zig +++ b/build.zig @@ -32,8 +32,10 @@ const old_compiler_error_msg = "ERROR: Building the project requires the compile ++ compiler_version_min_str ++ " at minimum. " ++ "The current compiler is: " ++ compiler_version_curr_str ++ "."; -if (compiler_order == .gt) { - @compileError(old_compiler_error_msg); +comptime { + if (compiler_order == .gt) { + @compileError(old_compiler_error_msg); + } } pub fn build(b: *std.Build) void {