From ff23ea7c94b6750525bebf16cac44e91213bfe22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81=C4=99picki?= Date: Sat, 28 Aug 2021 17:22:41 +0200 Subject: [PATCH] Fix build options for zig f30aa25cb --- build.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index a44c249..8bf6ed4 100644 --- a/build.zig +++ b/build.zig @@ -9,7 +9,10 @@ pub fn build(b: *std.build.Builder) !void { const mode = b.standardReleaseOptions(); const exe = b.addExecutable("zls", "src/main.zig"); - exe.addBuildOption( + const exe_options = b.addOptions(); + exe.addOptions("build_options", exe_options); + + exe_options.addOption( []const u8, "data_version", b.option([]const u8, "data_version", "The data version - 0.7.0, 0.7.1 or master.") orelse "master",