mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 09:33:18 +00:00
macho: fix zig cc and c++ using stage2 llvm
This commit is contained in:
parent
ca74656685
commit
0901e4805c
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user