| author | |
| committer | |
| log | a583d26e7016a6111c2d1f9dbe34aeedf810c63f |
| tree | fbefbf02dbdeb9445f3e6464634c5d4a270bba22 |
| parent | 4044314e3f866277658e63f7a0a254041a78769b |
| signature |
https://codeberg.org/ziglang/zig/issues/35267
This was already the case before b66fe565db650bbac17c7fd6559734f7d658f36d since
isBSD() includes isDarwin() - a great example of why that function is bad,
because it was not intended for Darwin platforms to be included in that check.
Anyway, we now *do* want to disable the self-hosted backend for this target due
to the aforementioned linker bug, but let's actually be intentional about it.2 files changed, 4 insertions(+), 2 deletions(-)
src/target.zig+2-1| ... | ... | @@ -313,7 +313,8 @@ pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool { |
| 313 | 313 | else => {}, |
| 314 | 314 | } |
| 315 | 315 | return switch (target.ofmt) { |
| 316 | .elf, .macho => true, | |
| 316 | .elf => true, | |
| 317 | .macho => false, // https://codeberg.org/ziglang/zig/issues/35267 | |
| 317 | 318 | else => false, |
| 318 | 319 | }; |
| 319 | 320 | } |
test/tests.zig+2-1| ... | ... | @@ -3051,7 +3051,8 @@ pub fn wouldUseLlvm(use_llvm: ?bool, query: std.Target.Query, optimize_mode: Opt |
| 3051 | 3051 | else => {}, |
| 3052 | 3052 | } |
| 3053 | 3053 | return switch (ofmt) { |
| 3054 | .elf, .macho => return false, | |
| 3054 | .elf => return false, | |
| 3055 | .macho => return true, // https://codeberg.org/ziglang/zig/issues/35267 | |
| 3055 | 3056 | else => return true, |
| 3056 | 3057 | }; |
| 3057 | 3058 | }, |