| ... | ... | @@ -1469,6 +1469,7 @@ pub const LibExeObjStep = struct { |
| 1469 | 1469 | major_only_filename: ?[]const u8, |
| 1470 | 1470 | name_only_filename: ?[]const u8, |
| 1471 | 1471 | strip: ?bool, |
| 1472 | unwind_tables: ?bool, |
| 1472 | 1473 | // keep in sync with src/link.zig:CompressDebugSections |
| 1473 | 1474 | compress_debug_sections: enum { none, zlib } = .none, |
| 1474 | 1475 | lib_paths: ArrayList([]const u8), |
| ... | ... | @@ -1739,6 +1740,7 @@ pub const LibExeObjStep = struct { |
| 1739 | 1740 | const self = builder.allocator.create(LibExeObjStep) catch unreachable; |
| 1740 | 1741 | self.* = LibExeObjStep{ |
| 1741 | 1742 | .strip = null, |
| 1743 | .unwind_tables = null, |
| 1742 | 1744 | .builder = builder, |
| 1743 | 1745 | .verbose_link = false, |
| 1744 | 1746 | .verbose_cc = false, |
| ... | ... | @@ -2698,6 +2700,14 @@ pub const LibExeObjStep = struct { |
| 2698 | 2700 | } |
| 2699 | 2701 | } |
| 2700 | 2702 | |
| 2703 | if (self.unwind_tables) |unwind_tables| { |
| 2704 | if (unwind_tables) { |
| 2705 | try zig_args.append("-funwind-tables"); |
| 2706 | } else { |
| 2707 | try zig_args.append("-fno-unwind-tables"); |
| 2708 | } |
| 2709 | } |
| 2710 | |
| 2701 | 2711 | switch (self.compress_debug_sections) { |
| 2702 | 2712 | .none => {}, |
| 2703 | 2713 | .zlib => try zig_args.append("--compress-debug-sections=zlib"), |