Rollup merge of #128450 - dpaoliello:coff, r=bjorn3

Create COFF archives for non-LLVM backends

`ar_archive_writer` now supports creating COFF archives, so enable them for the non-LLVM backends when requested.

r? ``@bjorn3``
This commit is contained in:
Matthias Krüger 2024-08-01 08:33:28 +02:00 committed by GitHub
commit 2c3b89e4d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,11 +220,7 @@ fn build_inner(self, output: &Path) -> io::Result<bool> {
"gnu" => ArchiveKind::Gnu,
"bsd" => ArchiveKind::Bsd,
"darwin" => ArchiveKind::Darwin,
"coff" => {
// FIXME: ar_archive_writer doesn't support COFF archives yet.
// https://github.com/rust-lang/ar_archive_writer/issues/9
ArchiveKind::Gnu
}
"coff" => ArchiveKind::Coff,
"aix_big" => ArchiveKind::AixBig,
kind => {
self.sess.dcx().emit_fatal(UnknownArchiveKind { kind });