| ... | ... | @@ -379,10 +379,6 @@ pub fn deinit(self: *MachO) void { |
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 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 | 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 | 391 | |
| 396 | 392 | if (self.llvm_object) |llvm_object| { |
| 397 | 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 | 396 | var sub_prog_node = prog_node.start("MachO Flush", 0); |