| ... | @@ -6280,7 +6280,7 @@ fn canBuildLibCompilerRt(target: std.Target, use_llvm: bool) bool { | ... | @@ -6280,7 +6280,7 @@ fn canBuildLibCompilerRt(target: std.Target, use_llvm: bool) bool { |
| 6280 | } | 6280 | } |
| 6281 | return switch (target_util.zigBackend(target, use_llvm)) { | 6281 | return switch (target_util.zigBackend(target, use_llvm)) { |
| 6282 | .stage2_llvm => true, | 6282 | .stage2_llvm => true, |
| 6283 | .stage2_x86_64 => if (target.ofmt == .elf) true else build_options.have_llvm, | 6283 | .stage2_x86_64 => if (target.ofmt == .elf or target.ofmt == .macho) true else build_options.have_llvm, |
| 6284 | else => build_options.have_llvm, | 6284 | else => build_options.have_llvm, |
| 6285 | }; | 6285 | }; |
| 6286 | } | 6286 | } |
| ... | @@ -6298,7 +6298,7 @@ fn canBuildZigLibC(target: std.Target, use_llvm: bool) bool { | ... | @@ -6298,7 +6298,7 @@ fn canBuildZigLibC(target: std.Target, use_llvm: bool) bool { |
| 6298 | } | 6298 | } |
| 6299 | return switch (target_util.zigBackend(target, use_llvm)) { | 6299 | return switch (target_util.zigBackend(target, use_llvm)) { |
| 6300 | .stage2_llvm => true, | 6300 | .stage2_llvm => true, |
| 6301 | .stage2_x86_64 => if (target.ofmt == .elf) true else build_options.have_llvm, | 6301 | .stage2_x86_64 => if (target.ofmt == .elf or target.ofmt == .macho) true else build_options.have_llvm, |
| 6302 | else => build_options.have_llvm, | 6302 | else => build_options.have_llvm, |
| 6303 | }; | 6303 | }; |
| 6304 | } | 6304 | } |