| author | |
| committer | |
| log | f8458a549ba7fbd29b3d045019313704f1305e89 |
| tree | 25b0611c1cd7ae9cf4ec1b2230a800495dd05565 |
| parent | 0901e4805c81873defa0eb595a126473eb09acab |
2 files changed, 2 insertions(+), 3 deletions(-)
src/link/MachO.zig+2-1| ... | ... | @@ -712,7 +712,8 @@ fn linkOneShot(self: *MachO, comp: *Compilation, prog_node: *std.Progress.Node) |
| 712 | 712 | const is_dyn_lib = self.base.options.link_mode == .Dynamic and is_lib; |
| 713 | 713 | const is_exe_or_dyn_lib = is_dyn_lib or self.base.options.output_mode == .Exe; |
| 714 | 714 | const stack_size = self.base.options.stack_size_override orelse 0; |
| 715 | const gc_sections = self.base.options.gc_sections orelse false; | |
| 715 | const is_debug_build = self.base.options.optimize_mode == .Debug; | |
| 716 | const gc_sections = self.base.options.gc_sections orelse !is_debug_build; | |
| 716 | 717 | |
| 717 | 718 | const id_symlink_basename = "zld.id"; |
| 718 | 719 |
src/link/MachO/dead_strip.zig-2| ... | ... | @@ -11,8 +11,6 @@ const MachO = @import("../MachO.zig"); |
| 11 | 11 | const MatchingSection = MachO.MatchingSection; |
| 12 | 12 | |
| 13 | 13 | pub fn gcAtoms(macho_file: *MachO) !void { |
| 14 | assert(macho_file.base.options.gc_sections.?); | |
| 15 | ||
| 16 | 14 | const gpa = macho_file.base.allocator; |
| 17 | 15 | var arena_allocator = std.heap.ArenaAllocator.init(gpa); |
| 18 | 16 | defer arena_allocator.deinit(); |