Skip to content

Commit d79b3cc

Browse files
committed
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 parent b206b06 commit d79b3cc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/target.zig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,7 @@ pub fn canBuildLibCompilerRt(target: *const std.Target) enum { no, yes, llvm_onl
375375
else => {},
376376
}
377377
return switch (zigBackend(target, false)) {
378-
.stage2_aarch64 => .yes,
379-
.stage2_x86_64 => switch (target.ofmt) {
380-
.elf, .macho => .yes,
381-
else => .llvm_only,
382-
},
378+
.stage2_aarch64, .stage2_x86_64 => .yes,
383379
else => .llvm_only,
384380
};
385381
}

0 commit comments

Comments
 (0)