Skip to content

Commit 2c3b89e

Browse files
authored
Rollup merge of rust-lang#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``
2 parents cd52527 + 03357f1 commit 2c3b89e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_codegen_ssa/src/back/archive.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,7 @@ impl<'a> ArArchiveBuilder<'a> {
220220
"gnu" => ArchiveKind::Gnu,
221221
"bsd" => ArchiveKind::Bsd,
222222
"darwin" => ArchiveKind::Darwin,
223-
"coff" => {
224-
// FIXME: ar_archive_writer doesn't support COFF archives yet.
225-
// https://github.com/rust-lang/ar_archive_writer/issues/9
226-
ArchiveKind::Gnu
227-
}
223+
"coff" => ArchiveKind::Coff,
228224
"aix_big" => ArchiveKind::AixBig,
229225
kind => {
230226
self.sess.dcx().emit_fatal(UnknownArchiveKind { kind });

0 commit comments

Comments
 (0)