| ... | @@ -712,7 +712,8 @@ fn linkOneShot(self: *MachO, comp: *Compilation, prog_node: *std.Progress.Node) | ... | @@ -712,7 +712,8 @@ fn linkOneShot(self: *MachO, comp: *Compilation, prog_node: *std.Progress.Node) |
| 712 | const is_dyn_lib = self.base.options.link_mode == .Dynamic and is_lib; | 712 | const is_dyn_lib = self.base.options.link_mode == .Dynamic and is_lib; |
| 713 | const is_exe_or_dyn_lib = is_dyn_lib or self.base.options.output_mode == .Exe; | 713 | const is_exe_or_dyn_lib = is_dyn_lib or self.base.options.output_mode == .Exe; |
| 714 | const stack_size = self.base.options.stack_size_override orelse 0; | 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 | const id_symlink_basename = "zld.id"; | 718 | const id_symlink_basename = "zld.id"; |
| 718 | | 719 | |