From d20dc292bee8f00e76ae9b20235b0aa5eda89c78 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Fri, 9 Sep 2022 20:49:16 +0200 Subject: [PATCH] automatically strip mzteinit binary in release mode --- scripts/mzteinit/build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/mzteinit/build.zig b/scripts/mzteinit/build.zig index 2910f03..78b8f6c 100644 --- a/scripts/mzteinit/build.zig +++ b/scripts/mzteinit/build.zig @@ -14,6 +14,7 @@ pub fn build(b: *std.build.Builder) void { const exe = b.addExecutable("mzteinit", "src/main.zig"); exe.setTarget(target); + exe.strip = mode != .Debug; pkgs.addAllTo(exe);