File tree 2 files changed +6
-1
lines changed
rustc_codegen_ssa/src/back
rustc_target/src/spec/base
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> {
231
231
"gnu" => ArchiveKind :: Gnu ,
232
232
"bsd" => ArchiveKind :: Bsd ,
233
233
"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
+ }
235
239
"aix_big" => ArchiveKind :: AixBig ,
236
240
kind => {
237
241
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 {
14
14
pre_link_args,
15
15
abi_return_struct_as_int : true ,
16
16
emit_debug_gdb_scripts : false ,
17
+ archive_format : "coff" . into ( ) ,
17
18
18
19
// Currently this is the only supported method of debuginfo on MSVC
19
20
// where `*.pdb` files show up next to the final artifact.
You can’t perform that action at this time.
0 commit comments