From 72f811e8dc2c28165fbbc28e5efbb4f3616ffa67 Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Sun, 8 Nov 2020 18:01:07 +0200 Subject: [PATCH] Recommend a release-fast build in the README --- README.md | 2 +- build.zig | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7fb9f73..99e30b9 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Installing `zls` is pretty simple. You will need [a build of Zig master](https:/ ```bash git clone --recurse-submodules https://github.com/zigtools/zls cd zls -zig build +zig build -Drelease-fast # To configure zls: zig build config diff --git a/build.zig b/build.zig index 1e7c7fd..5d60e6c 100644 --- a/build.zig +++ b/build.zig @@ -10,8 +10,6 @@ pub fn config(step: *std.build.Step) anyerror!void { @setEvalBranchQuota(2500); std.debug.warn("Welcome to the ZLS configuration wizard! (insert mage emoji here)\n", .{}); - // std.debug.warn("{}", .{dir.}); - const lib_path = try zinput.askDirPath(builder.allocator, "What is your Zig lib path (path that contains the 'std' folder)?", 512); const snippets = try zinput.askBool("Do you want to enable snippets?"); const style = try zinput.askBool("Do you want to enable style warnings?"); @@ -130,12 +128,9 @@ pub fn build(b: *std.build.Builder) !void { // for restricting supported target set are available. const target = b.standardTargetOptions(.{}); - // Standard release options allow the person running `zig build` to select - // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. const mode = b.standardReleaseOptions(); - const exe = b.addExecutable("zls", "src/main.zig"); - + exe.addBuildOption( []const u8, "data_version",