From b023e2f7d04d6f7707e4dd05ab133e56e9f4ff51 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Thu, 15 Sep 2022 16:05:27 +0000 Subject: [PATCH] Fix bundled static libraries --- src/archive.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/archive.rs b/src/archive.rs index b4c79096170..31d3d0e0615 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -159,6 +159,8 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> { 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: {}",