Fix build options for zig f30aa25cb

This commit is contained in:
Michał Łępicki 2021-08-28 17:22:41 +02:00
parent 917ef4b073
commit ff23ea7c94

View File

@ -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",