build.zig: Update minimum Zig version

Requires the minimum version to support https://github.com/ziglang/zig/pull/15278
This commit is contained in:
Sage Hane 2023-04-29 12:19:42 +02:00
parent 1ef3944cb0
commit 71a202f12a
No known key found for this signature in database

View File

@ -7,7 +7,7 @@ const zls_version = std.builtin.Version{ .major = 0, .minor = 11, .patch = 0 };
pub fn build(b: *std.build.Builder) !void {
comptime {
const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse("0.11.0-dev.2835+7285eedcd") catch unreachable; // std.http: do -> wait, fix redirects
const min_zig = std.SemanticVersion.parse("0.11.0-dev.2861+3c66850e4") catch unreachable; // std.http: do -> wait, fix redirects
if (current_zig.order(min_zig) == .lt) {
@compileError(std.fmt.comptimePrint("Your Zig version v{} does not meet the minimum build requirement of v{}", .{ current_zig, min_zig }));
}