MSVC targets should use COFF as their archive format
This commit is contained in:
parent
0fd571286e
commit
9d7090726d
2 changed files with 6 additions and 1 deletions
|
@ -231,7 +231,11 @@ impl<'a> ArArchiveBuilder<'a> {
|
||||||
"gnu" => ArchiveKind::Gnu,
|
"gnu" => ArchiveKind::Gnu,
|
||||||
"bsd" => ArchiveKind::Bsd,
|
"bsd" => ArchiveKind::Bsd,
|
||||||
"darwin" => ArchiveKind::Darwin,
|
"darwin" => ArchiveKind::Darwin,
|
||||||
"coff" => ArchiveKind::Coff,
|
"coff" => {
|
||||||
|
// FIXME: ar_archive_writer doesn't support COFF archives yet.
|
||||||
|
// https://github.com/rust-lang/ar_archive_writer/issues/9
|
||||||
|
ArchiveKind::Gnu
|
||||||
|
}
|
||||||
"aix_big" => ArchiveKind::AixBig,
|
"aix_big" => ArchiveKind::AixBig,
|
||||||
kind => {
|
kind => {
|
||||||
self.sess.dcx().emit_fatal(UnknownArchiveKind { kind });
|
self.sess.dcx().emit_fatal(UnknownArchiveKind { kind });
|
||||||
|
|
|
@ -14,6 +14,7 @@ pub fn opts() -> TargetOptions {
|
||||||
pre_link_args,
|
pre_link_args,
|
||||||
abi_return_struct_as_int: true,
|
abi_return_struct_as_int: true,
|
||||||
emit_debug_gdb_scripts: false,
|
emit_debug_gdb_scripts: false,
|
||||||
|
archive_format: "coff".into(),
|
||||||
|
|
||||||
// Currently this is the only supported method of debuginfo on MSVC
|
// Currently this is the only supported method of debuginfo on MSVC
|
||||||
// where `*.pdb` files show up next to the final artifact.
|
// where `*.pdb` files show up next to the final artifact.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue