From 2e01197d58cba1e2b8e248ebbe1c0bcc598b1582 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 14 Jul 2021 08:38:42 -0700 Subject: [PATCH] add default --- build.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index a634b23..1c1b651 100644 --- a/build.zig +++ b/build.zig @@ -54,7 +54,10 @@ pub fn build(b: *Builder) !void { // https://ziglang.org/builds/zig-linux-x86_64-0.9.0-dev.321+15a030ef3.tar.xz exe.linkage = .static; - const is_strip = b.option(bool, "strip", "strip exe") orelse true; + // TODO: Strip doesn't actually fully strip the executable. If we're on + // linux we can run strip on the result, probably at the expense + // of busting cache logic + const is_strip = b.option(bool, "strip", "strip exe [true]") orelse true; exe.strip = is_strip; const run_cmd = exe.run();