add default

This commit is contained in:
Emil Lerch 2021-07-14 08:38:42 -07:00
parent fda5589f20
commit 2e01197d58
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -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 // https://ziglang.org/builds/zig-linux-x86_64-0.9.0-dev.321+15a030ef3.tar.xz
exe.linkage = .static; 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; exe.strip = is_strip;
const run_cmd = exe.run(); const run_cmd = exe.run();