about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-01 08:33:28 +0200
committerGitHub <noreply@github.com>2024-08-01 08:33:28 +0200
commit2c3b89e4d85b7791280fe6cfcebeee389e2e3f0c (patch)
treea942c6ffed425d2c0a4d926956e4fc4f40c0dcb6 /compiler/rustc_codegen_ssa/src
parentcd525270f961ce0e670d1a5e85af11fd03990665 (diff)
parent03357f12f8f2ad11dc643f20597c33bc117bd1cb (diff)
downloadrust-2c3b89e4d85b7791280fe6cfcebeee389e2e3f0c.tar.gz
rust-2c3b89e4d85b7791280fe6cfcebeee389e2e3f0c.zip
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``
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 dd950703615..4f93b7b23c6 100644
--- a/compiler/rustc_codegen_ssa/src/back/archive.rs
+++ b/compiler/rustc_codegen_ssa/src/back/archive.rs
@@ -220,11 +220,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 });