macho: fix zig cc and c++ using stage2 llvm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user