Skip to content

Commit

Permalink
fixed compiler version check
Browse files Browse the repository at this point in the history
  • Loading branch information
10aded committed May 2, 2024
1 parent b096269 commit 9d46354
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9d46354

Please sign in to comment.