Commit 0901e4805c
Changed files (1)
src
link
src/link/MachO.zig
@@ -432,7 +432,7 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO {
CodeSignature.init(page_size)
else
null,
- .mode = if (use_stage1 or use_llvm or options.cache_mode == .whole)
+ .mode = if (use_stage1 or use_llvm or options.module == null or options.cache_mode == .whole)
.one_shot
else
.incremental,
@@ -442,6 +442,8 @@ pub fn createEmpty(gpa: Allocator, options: link.Options) !*MachO {
self.llvm_object = try LlvmObject.create(gpa, options);
}
+ log.debug("selected linker mode '{s}'", .{@tagName(self.mode)});
+
return self;
}