From 32386a06caefc78dc3f0a2e6bb2cd478a4615bc3 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Thu, 8 Feb 2024 22:55:11 +0100 Subject: builtin: enable panic handler on self-hosted macho comp: toggle compiler-rt and zig-libc caps for macho --- src/Compilation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Compilation.zig b/src/Compilation.zig index d2ed241960..ee2100fedd 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6280,7 +6280,7 @@ fn canBuildLibCompilerRt(target: std.Target, use_llvm: bool) bool { } return switch (target_util.zigBackend(target, use_llvm)) { .stage2_llvm => true, - .stage2_x86_64 => if (target.ofmt == .elf) true else build_options.have_llvm, + .stage2_x86_64 => if (target.ofmt == .elf or target.ofmt == .macho) true else build_options.have_llvm, else => build_options.have_llvm, }; } @@ -6298,7 +6298,7 @@ fn canBuildZigLibC(target: std.Target, use_llvm: bool) bool { } return switch (target_util.zigBackend(target, use_llvm)) { .stage2_llvm => true, - .stage2_x86_64 => if (target.ofmt == .elf) true else build_options.have_llvm, + .stage2_x86_64 => if (target.ofmt == .elf or target.ofmt == .macho) true else build_options.have_llvm, else => build_options.have_llvm, }; } -- cgit v1.2.3