File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1474,6 +1474,8 @@ pub const LibExeObjStep = struct {
14741474 major_only_filename : ? []const u8 ,
14751475 name_only_filename : ? []const u8 ,
14761476 strip : bool ,
1477+ // keep in sync with src/link.zig:CompressDebugSections
1478+ compress_debug_sections : enum { none , zlib } = .none ,
14771479 lib_paths : ArrayList ([]const u8 ),
14781480 rpaths : ArrayList ([]const u8 ),
14791481 framework_dirs : ArrayList ([]const u8 ),
@@ -2688,6 +2690,12 @@ pub const LibExeObjStep = struct {
26882690 if (self .strip ) {
26892691 try zig_args .append ("--strip" );
26902692 }
2693+
2694+ switch (self .compress_debug_sections ) {
2695+ .none = > {},
2696+ .zlib = > try zig_args .append ("--compress-debug-sections=zlib" ),
2697+ }
2698+
26912699 if (self .link_eh_frame_hdr ) {
26922700 try zig_args .append ("--eh-frame-hdr" );
26932701 }
You can’t perform that action at this time.
0 commit comments