authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-07-21 22:21:34+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-07-22 16:58:21+02:00
log0901e4805c81873defa0eb595a126473eb09acab
treed61656ef0d60708bda75ce90d64a3335b352c203
parentca746566851aa5b12120fc76c69a0a2278a31f4e

macho: fix zig cc and c++ using stage2 llvm


1 files changed, 3 insertions(+), 1 deletions(-)

src/link/MachO.zig+3-1
...@@ -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 else433 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_shot436 .one_shot
437 else437 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 }
444444
445 log.debug("selected linker mode '{s}'", .{@tagName(self.mode)});
446
445 return self;447 return self;
446}448}
447449