Skip to content

Commit

Permalink
Avoid AAPT errors stemming from attempts of adding the same library t…
Browse files Browse the repository at this point in the history
…wice. (#187)

Co-authored-by: zer0def <[email protected]>
  • Loading branch information
zer0def and zer0def authored Mar 12, 2022
1 parent 38b8861 commit 190b083
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ndk-build/src/readelf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ impl<'a> UnalignedApk<'a> {
};

if let Some(path) = find_library_path(search_paths, &need)? {
provided.insert(path.file_name().unwrap().to_str().unwrap().to_string());
artifacts.push(path);
if provided.insert(path.file_name().unwrap().to_str().unwrap().to_string()) {
artifacts.push(path);
}
} else {
eprintln!("Shared library \"{}\" not found.", need);
}
Expand Down

0 comments on commit 190b083

Please sign in to comment.