authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2025-09-27 17:52:52-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2025-09-27 18:30:52-04:00
logd79b3cc1342a6be32d2bf69554f0e15670a54f14
tree463b8d845e4ab84a7bd803b4c72aa84bff0a62cf
parentb206b0626ae8e4fd1c50097d2f376890a48d4518

target: x86_64 backend can build compiler rt with coff

Without allowing this, the references to `compiler_rt.dll` emitted by the coff linker will prevent the executable from running.

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

src/target.zig+1-5
...@@ -375,11 +375,7 @@ pub fn canBuildLibCompilerRt(target: *const std.Target) enum { no, yes, llvm_onl...@@ -375,11 +375,7 @@ pub fn canBuildLibCompilerRt(target: *const std.Target) enum { no, yes, llvm_onl
375 else => {},375 else => {},
376 }376 }
377 return switch (zigBackend(target, false)) {377 return switch (zigBackend(target, false)) {
378 .stage2_aarch64 => .yes,378 .stage2_aarch64, .stage2_x86_64 => .yes,
379 .stage2_x86_64 => switch (target.ofmt) {
380 .elf, .macho => .yes,
381 else => .llvm_only,
382 },
383 else => .llvm_only,379 else => .llvm_only,
384 };380 };
385}381}