Merge pull request #383 from michallepicki/fixes-for-zig-f30aa25cb

This commit is contained in:
Auguste Rame 2021-08-28 12:36:24 -04:00 committed by GitHub
commit 86199ca9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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