Fix data option
This commit is contained in:
parent
fdba27b6e0
commit
4f9f317374
@ -135,13 +135,11 @@ 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");
|
||||||
|
|
||||||
const data_version = try std.mem.concat(b.allocator, u8, &[3][]const u8{ "\"", b.option([]const u8, "data_version", "The data version - either 0.6.0 or master.") orelse "0.6.0", "\"" });
|
|
||||||
defer b.allocator.free(data_version);
|
|
||||||
exe.addBuildOption(
|
exe.addBuildOption(
|
||||||
[]const u8,
|
[]const u8,
|
||||||
"data_version",
|
"data_version",
|
||||||
data_version,
|
b.option([]const u8, "data_version", "The data version - either 0.6.0 or master.") orelse "0.6.0",
|
||||||
);
|
);
|
||||||
|
|
||||||
exe.addBuildOption(
|
exe.addBuildOption(
|
||||||
|
Loading…
Reference in New Issue
Block a user