wip compress-debug-sections

This commit is contained in:
Motiejus Jakštys 2022-07-20 14:30:48 +03:00
parent 6c311b786f
commit ef436294e9

View File

@ -42,6 +42,7 @@ pub fn build(b: *zbs.Builder) void {
//"-DDEBUG",
});
cmph.strip = strip;
cmph.compress_debug_sections = .zlib;
cmph.omit_frame_pointer = true;
cmph.addIncludeDir("deps/cmph/src");
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");
exe.compress_debug_sections = .zlib;
exe.strip = strip;
exe.setTarget(target);
exe.setBuildMode(mode);
@ -74,6 +76,7 @@ pub fn build(b: *zbs.Builder) void {
{
const exe = b.addExecutable("turbonss-analyze", "src/turbonss-analyze.zig");
exe.compress_debug_sections = .zlib;
exe.strip = strip;
exe.setTarget(target);
exe.setBuildMode(mode);
@ -82,6 +85,7 @@ pub fn build(b: *zbs.Builder) void {
{
const exe = b.addExecutable("turbonss-getent", "src/turbonss-getent.zig");
exe.compress_debug_sections = .zlib;
exe.strip = strip;
exe.linkLibC();
exe.linkLibrary(bdz);
@ -99,6 +103,7 @@ pub fn build(b: *zbs.Builder) void {
.patch = 0,
},
});
so.compress_debug_sections = .zlib;
so.strip = strip;
so.linkLibC();
so.linkLibrary(bdz);