Merge pull request #2443 from ghostty-org/push-ktxyxmvpvryw

build: strip symbols from release builds
This commit is contained in:
Mitchell Hashimoto
2024-10-15 09:58:57 -07:00
committed by GitHub

View File

@ -237,6 +237,11 @@ pub fn build(b: *std.Build) !void {
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.strip = switch (optimize) {
.Debug => false,
.ReleaseSafe => false,
.ReleaseFast, .ReleaseSmall => true,
},
}) else null;
// Exe