warn if user zig version is out of date
This commit is contained in:
parent
95dbe67217
commit
db4a48604f
1 changed files with 7 additions and 0 deletions
|
|
@ -172,3 +172,10 @@ fn sdkPath(comptime suffix: []const u8) []const u8 {
|
||||||
break :blk root_dir ++ suffix;
|
break :blk root_dir ++ suffix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comptime {
|
||||||
|
const min_zig = std.SemanticVersion.parse("0.11.0-dev.3947+89396ff02") catch unreachable;
|
||||||
|
if (builtin.zig_version.order(min_zig) == .lt) {
|
||||||
|
@compileError(std.fmt.comptimePrint("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ builtin.zig_version, min_zig }));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue