Skip to content

Commit

Permalink
semver check in build update to master
Browse files Browse the repository at this point in the history
  • Loading branch information
WriteNaN committed May 1, 2024
1 parent 6c265ae commit e7621a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn getBuzzPrefix(b: *Build) []const u8 {
pub fn build(b: *Build) !void {
// Check minimum zig version
const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse("0.12.0-dev.3666+a2b834e8c") catch return;
const min_zig = std.SemanticVersion.parse("0.13.0-dev.46+3648d7df1") catch return;
if (current_zig.order(min_zig).compare(.lt)) {
@panic(b.fmt("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ current_zig, min_zig }));
}
Expand Down

0 comments on commit e7621a3

Please sign in to comment.