Use archive_format for determining if gnu style archives should be emitted

Fixes #893
This commit is contained in:
bjorn3 2020-02-14 19:12:43 +01:00
parent 6b25454028
commit a3f27a4428

View File

@ -41,7 +41,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
lib_search_paths: archive_search_paths(sess),
use_native_ar: false,
// FIXME test for linux and System V derivatives instead
use_gnu_style_archive: !sess.target.target.options.is_like_osx,
use_gnu_style_archive: sess.target.target.options.archive_format == "gnu",
};
let (src_archives, entries) = if let Some(input) = input {