Merge branch 'compress-debug-sections'

This commit is contained in:
Motiejus Jakštys 2022-08-23 15:49:33 +03:00
commit 292c87a597

View File

@ -42,6 +42,7 @@ pub fn build(b: *zbs.Builder) void {
//"-DDEBUG", //"-DDEBUG",
}); });
cmph.strip = strip; cmph.strip = strip;
cmph.compress_debug_sections = .zlib;
cmph.omit_frame_pointer = true; cmph.omit_frame_pointer = true;
cmph.addIncludeDir("deps/cmph/src"); cmph.addIncludeDir("deps/cmph/src");
cmph.addIncludeDir("include/deps/cmph"); cmph.addIncludeDir("include/deps/cmph");
@ -65,6 +66,7 @@ pub fn build(b: *zbs.Builder) void {
{ {
const exe = b.addExecutable("turbonss-unix2db", "src/turbonss-unix2db.zig"); const exe = b.addExecutable("turbonss-unix2db", "src/turbonss-unix2db.zig");
exe.compress_debug_sections = .zlib;
exe.strip = strip; exe.strip = strip;
exe.setTarget(target); exe.setTarget(target);
exe.setBuildMode(mode); exe.setBuildMode(mode);
@ -74,6 +76,7 @@ pub fn build(b: *zbs.Builder) void {
{ {
const exe = b.addExecutable("turbonss-analyze", "src/turbonss-analyze.zig"); const exe = b.addExecutable("turbonss-analyze", "src/turbonss-analyze.zig");
exe.compress_debug_sections = .zlib;
exe.strip = strip; exe.strip = strip;
exe.setTarget(target); exe.setTarget(target);
exe.setBuildMode(mode); exe.setBuildMode(mode);
@ -90,6 +93,7 @@ pub fn build(b: *zbs.Builder) void {
{ {
const exe = b.addExecutable("turbonss-getent", "src/turbonss-getent.zig"); const exe = b.addExecutable("turbonss-getent", "src/turbonss-getent.zig");
exe.compress_debug_sections = .zlib;
exe.strip = strip; exe.strip = strip;
exe.linkLibC(); exe.linkLibC();
exe.linkLibrary(bdz); exe.linkLibrary(bdz);
@ -107,6 +111,7 @@ pub fn build(b: *zbs.Builder) void {
.patch = 0, .patch = 0,
}, },
}); });
so.compress_debug_sections = .zlib;
so.strip = strip; so.strip = strip;
so.linkLibC(); so.linkLibC();
so.linkLibrary(bdz); so.linkLibrary(bdz);