1
Fork 0

Merge branch 'compress-debug-sections'

This commit is contained in:
Motiejus Jakštys 2022-08-23 15:49:33 +03:00
commit 292c87a597
1 changed files with 5 additions and 0 deletions

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);
@ -90,6 +93,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);
@ -107,6 +111,7 @@ pub fn build(b: *zbs.Builder) void {
.patch = 0,
},
});
so.compress_debug_sections = .zlib;
so.strip = strip;
so.linkLibC();
so.linkLibrary(bdz);