about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorDaniel Paoliello <danpao@microsoft.com>2024-07-31 10:40:36 -0700
committerDaniel Paoliello <danpao@microsoft.com>2024-07-31 10:40:36 -0700
commit03357f12f8f2ad11dc643f20597c33bc117bd1cb (patch)
treeb4c3bc2a7c6ba045f1f206edb68fbb69597eb050 /compiler/rustc_codegen_ssa/src
parenteb10639928a2781cf0a12440007fbcc1e3a6888f (diff)
downloadrust-03357f12f8f2ad11dc643f20597c33bc117bd1cb.tar.gz
rust-03357f12f8f2ad11dc643f20597c33bc117bd1cb.zip
Create COFF archives for non-LLVM backends
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/archive.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/archive.rs b/compiler/rustc_codegen_ssa/src/back/archive.rs
index ae649cd77c4..638d90e1f9c 100644
--- a/compiler/rustc_codegen_ssa/src/back/archive.rs
+++ b/compiler/rustc_codegen_ssa/src/back/archive.rs
@@ -224,11 +224,7 @@ impl<'a> ArArchiveBuilder<'a> {
             "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 });