Fix data option

This commit is contained in:
Auguste Rame 2020-08-05 20:03:06 -04:00 committed by GitHub
parent fdba27b6e0
commit 4f9f317374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(