| ... | ... | @@ -432,7 +432,7 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO { |
| 432 | 432 | CodeSignature.init(page_size) |
| 433 | 433 | else |
| 434 | 434 | null, |
| 435 | | .mode = if (use_stage1 or use_llvm or options.cache_mode == .whole) |
| 435 | .mode = if (use_stage1 or use_llvm or options.module == null or options.cache_mode == .whole) |
| 436 | 436 | .one_shot |
| 437 | 437 | else |
| 438 | 438 | .incremental, |
| ... | ... | @@ -442,6 +442,8 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO { |
| 442 | 442 | self.llvm_object = try LlvmObject.create(gpa, options); |
| 443 | 443 | } |
| 444 | 444 | |
| 445 | log.debug("selected linker mode '{s}'", .{@tagName(self.mode)}); |
| 446 | |
| 445 | 447 | return self; |
| 446 | 448 | } |
| 447 | 449 | |