From d79b3cc1342a6be32d2bf69554f0e15670a54f14 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 27 Sep 2025 17:52:52 -0400 Subject: [PATCH] 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. --- src/target.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/target.zig b/src/target.zig index 64506c991b..53ef68bfc5 100644 --- a/src/target.zig +++ b/src/target.zig @@ -375,11 +375,7 @@ pub fn canBuildLibCompilerRt(target: *const std.Target) enum { no, yes, llvm_onl else => {}, } return switch (zigBackend(target, false)) { - .stage2_aarch64 => .yes, - .stage2_x86_64 => switch (target.ofmt) { - .elf, .macho => .yes, - else => .llvm_only, - }, + .stage2_aarch64, .stage2_x86_64 => .yes, else => .llvm_only, }; }