Fix bundled static libraries

This commit is contained in:
bjorn3
2022-09-15 16:05:27 +00:00
parent 879c86ff30
commit b023e2f7d0
+2
View File
@@ -159,6 +159,8 @@ enum BuilderKind {
let err = err.to_string();
if err == "Unknown file magic" {
// Not an object file; skip it.
} else if object::read::archive::ArchiveFile::parse(&*data).is_ok() {
// Nested archive file; skip it.
} else {
sess.fatal(&format!(
"error parsing `{}` during archive creation: {}",