File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
rustc_codegen_ssa/src/back
rustc_target/src/spec/base Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,11 @@ impl<'a> ArArchiveBuilder<'a> {
231231 "gnu" => ArchiveKind :: Gnu ,
232232 "bsd" => ArchiveKind :: Bsd ,
233233 "darwin" => ArchiveKind :: Darwin ,
234- "coff" => ArchiveKind :: Coff ,
234+ "coff" => {
235+ // FIXME: ar_archive_writer doesn't support COFF archives yet.
236+ // https://github.com/rust-lang/ar_archive_writer/issues/9
237+ ArchiveKind :: Gnu
238+ }
235239 "aix_big" => ArchiveKind :: AixBig ,
236240 kind => {
237241 self . sess . dcx ( ) . emit_fatal ( UnknownArchiveKind { kind } ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ pub fn opts() -> TargetOptions {
1414 pre_link_args,
1515 abi_return_struct_as_int : true ,
1616 emit_debug_gdb_scripts : false ,
17+ archive_format : "coff" . into ( ) ,
1718
1819 // Currently this is the only supported method of debuginfo on MSVC
1920 // where `*.pdb` files show up next to the final artifact.
You can’t perform that action at this time.
0 commit comments