Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit b023e2f

Browse files
committed
Fix bundled static libraries
1 parent 879c86f commit b023e2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/archive.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
159159
let err = err.to_string();
160160
if err == "Unknown file magic" {
161161
// Not an object file; skip it.
162+
} else if object::read::archive::ArchiveFile::parse(&*data).is_ok() {
163+
// Nested archive file; skip it.
162164
} else {
163165
sess.fatal(&format!(
164166
"error parsing `{}` during archive creation: {}",

0 commit comments

Comments
 (0)