Use archive_format for determining if gnu style archives should be emitted
Fixes #893
This commit is contained in:
parent
6b25454028
commit
a3f27a4428
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
|
||||||
lib_search_paths: archive_search_paths(sess),
|
lib_search_paths: archive_search_paths(sess),
|
||||||
use_native_ar: false,
|
use_native_ar: false,
|
||||||
// FIXME test for linux and System V derivatives instead
|
// 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 {
|
let (src_archives, entries) = if let Some(input) = input {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue