| ... | @@ -379,10 +379,6 @@ pub fn deinit(self: *MachO) void { | ... | @@ -379,10 +379,6 @@ pub fn deinit(self: *MachO) void { |
| 379 | } | 379 | } |
| 380 | | 380 | |
| 381 | pub fn flush(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node) link.File.FlushError!void { | 381 | pub fn flush(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node) link.File.FlushError!void { |
| 382 | // TODO: I think this is just a temp and can be removed once we can emit static archives | | |
| 383 | if (self.base.isStaticLib() and build_options.have_llvm and self.base.comp.config.use_llvm) { | | |
| 384 | return self.base.linkAsArchive(arena, prog_node); | | |
| 385 | } | | |
| 386 | try self.flushModule(arena, prog_node); | 382 | try self.flushModule(arena, prog_node); |
| 387 | } | 383 | } |
| 388 | | 384 | |
| ... | @@ -395,8 +391,6 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node | ... | @@ -395,8 +391,6 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node |
| 395 | | 391 | |
| 396 | if (self.llvm_object) |llvm_object| { | 392 | if (self.llvm_object) |llvm_object| { |
| 397 | try self.base.emitLlvmObject(arena, llvm_object, prog_node); | 393 | try self.base.emitLlvmObject(arena, llvm_object, prog_node); |
| 398 | // TODO: I think this is just a temp and can be removed once we can emit static archives | | |
| 399 | if (self.base.isStaticLib() and build_options.have_llvm and self.base.comp.config.use_llvm) return; | | |
| 400 | } | 394 | } |
| 401 | | 395 | |
| 402 | var sub_prog_node = prog_node.start("MachO Flush", 0); | 396 | var sub_prog_node = prog_node.start("MachO Flush", 0); |