From bb727d263b94cc3dfd871dc638a8da49ea8b05ca Mon Sep 17 00:00:00 2001 From: Meghan Date: Tue, 1 Nov 2022 22:30:16 -0700 Subject: [PATCH] update minimum zig version followup to https://github.com/zigtools/zls/commit/886cfeacb5069510028e6bc1464e1b67da512932 --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 1d33de7..7b09246 100644 --- a/build.zig +++ b/build.zig @@ -2,11 +2,11 @@ const std = @import("std"); const builtin = @import("builtin"); const shared = @import("src/shared.zig"); -const zls_version = std.builtin.Version{ .major = 0, .minor = 10, .patch = 0 }; +const zls_version = std.builtin.Version{ .major = 0, .minor = 11, .patch = 0 }; pub fn build(b: *std.build.Builder) !void { const current_zig = builtin.zig_version; - const min_zig = std.SemanticVersion.parse("0.10.0-dev.4057+349d78a44") catch return; // std.zig.tokenizer.Token.Tag.number_literal added + const min_zig = std.SemanticVersion.parse("0.10.0-dev.4458+b120c819d") catch return; // builtins changed to @min / @max 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})); const target = b.standardTargetOptions(.{});