| ... | @@ -432,7 +432,7 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO { | ... | @@ -432,7 +432,7 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO { |
| 432 | CodeSignature.init(page_size) | 432 | CodeSignature.init(page_size) |
| 433 | else | 433 | else |
| 434 | null, | 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 | .one_shot | 436 | .one_shot |
| 437 | else | 437 | else |
| 438 | .incremental, | 438 | .incremental, |
| ... | @@ -442,6 +442,8 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO { | ... | @@ -442,6 +442,8 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO { |
| 442 | self.llvm_object = try LlvmObject.create(gpa, options); | 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 | return self; | 447 | return self; |
| 446 | } | 448 | } |
| 447 | | 449 | |