| ... | @@ -1474,6 +1474,8 @@ pub const LibExeObjStep = struct { | ... | @@ -1474,6 +1474,8 @@ pub const LibExeObjStep = struct { |
| 1474 | major_only_filename: ?[]const u8, | 1474 | major_only_filename: ?[]const u8, |
| 1475 | name_only_filename: ?[]const u8, | 1475 | name_only_filename: ?[]const u8, |
| 1476 | strip: bool, | 1476 | strip: bool, |
| | 1477 | // keep in sync with src/link.zig:CompressDebugSections |
| | 1478 | compress_debug_sections: enum { none, zlib } = .none, |
| 1477 | lib_paths: ArrayList([]const u8), | 1479 | lib_paths: ArrayList([]const u8), |
| 1478 | rpaths: ArrayList([]const u8), | 1480 | rpaths: ArrayList([]const u8), |
| 1479 | framework_dirs: ArrayList([]const u8), | 1481 | framework_dirs: ArrayList([]const u8), |
| ... | @@ -2688,6 +2690,12 @@ pub const LibExeObjStep = struct { | ... | @@ -2688,6 +2690,12 @@ pub const LibExeObjStep = struct { |
| 2688 | if (self.strip) { | 2690 | if (self.strip) { |
| 2689 | try zig_args.append("--strip"); | 2691 | try zig_args.append("--strip"); |
| 2690 | } | 2692 | } |
| | 2693 | |
| | 2694 | switch (self.compress_debug_sections) { |
| | 2695 | .none => {}, |
| | 2696 | .zlib => try zig_args.append("--compress-debug-sections=zlib"), |
| | 2697 | } |
| | 2698 | |
| 2691 | if (self.link_eh_frame_hdr) { | 2699 | if (self.link_eh_frame_hdr) { |
| 2692 | try zig_args.append("--eh-frame-hdr"); | 2700 | try zig_args.append("--eh-frame-hdr"); |
| 2693 | } | 2701 | } |