Fix build options for zig f30aa25cb
This commit is contained in:
parent
917ef4b073
commit
ff23ea7c94
@ -9,7 +9,10 @@ pub fn build(b: *std.build.Builder) !void {
|
|||||||
|
|
||||||
const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
const exe = b.addExecutable("zls", "src/main.zig");
|
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,
|
[]const u8,
|
||||||
"data_version",
|
"data_version",
|
||||||
b.option([]const u8, "data_version", "The data version - 0.7.0, 0.7.1 or master.") orelse "master",
|
b.option([]const u8, "data_version", "The data version - 0.7.0, 0.7.1 or master.") orelse "master",
|
||||||
|
Loading…
Reference in New Issue
Block a user