| ... | @@ -790,8 +790,15 @@ pub fn flushModule(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_nod | ... | @@ -790,8 +790,15 @@ pub fn flushModule(self: *Elf, arena: Allocator, tid: Zcu.PerThread.Id, prog_nod |
| 790 | if (comp.verbose_link) try self.dumpArgv(comp); | 790 | if (comp.verbose_link) try self.dumpArgv(comp); |
| 791 | | 791 | |
| 792 | if (self.zigObjectPtr()) |zig_object| try zig_object.flush(self, tid); | 792 | if (self.zigObjectPtr()) |zig_object| try zig_object.flush(self, tid); |
| 793 | if (self.base.isStaticLib()) return relocatable.flushStaticLib(self, comp, module_obj_path); | 793 | |
| 794 | if (self.base.isObject()) return relocatable.flushObject(self, comp, module_obj_path); | 794 | switch (comp.config.output_mode) { |
| | 795 | .Obj => return relocatable.flushObject(self, comp, module_obj_path), |
| | 796 | .Lib => switch (comp.config.link_mode) { |
| | 797 | .dynamic => {}, |
| | 798 | .static => return relocatable.flushStaticLib(self, comp, module_obj_path), |
| | 799 | }, |
| | 800 | .Exe => {}, |
| | 801 | } |
| 795 | | 802 | |
| 796 | const csu = try comp.getCrtPaths(arena); | 803 | const csu = try comp.getCrtPaths(arena); |
| 797 | | 804 | |