Skip to content

Commit a3f27a4

Browse files
committed
Use archive_format for determining if gnu style archives should be emitted
Fixes #893
1 parent 6b25454 commit a3f27a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/archive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
4141
lib_search_paths: archive_search_paths(sess),
4242
use_native_ar: false,
4343
// FIXME test for linux and System V derivatives instead
44-
use_gnu_style_archive: !sess.target.target.options.is_like_osx,
44+
use_gnu_style_archive: sess.target.target.options.archive_format == "gnu",
4545
};
4646

4747
let (src_archives, entries) = if let Some(input) = input {

0 commit comments

Comments
 (0)