Only run ranlib when necessary
This commit is contained in:
parent
daad966be7
commit
282e3055e1
1 changed files with 9 additions and 7 deletions
|
@ -220,6 +220,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
|
||||||
// Finalize archive
|
// Finalize archive
|
||||||
std::mem::drop(builder);
|
std::mem::drop(builder);
|
||||||
|
|
||||||
|
if self.update_symbols {
|
||||||
// Run ranlib to be able to link the archive
|
// Run ranlib to be able to link the archive
|
||||||
let status = std::process::Command::new("ranlib")
|
let status = std::process::Command::new("ranlib")
|
||||||
.arg(self.config.dst)
|
.arg(self.config.dst)
|
||||||
|
@ -231,6 +232,7 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<'a> ArArchiveBuilder<'a> {
|
impl<'a> ArArchiveBuilder<'a> {
|
||||||
fn add_archive<F>(&mut self, archive_path: PathBuf, mut skip: F) -> std::io::Result<()>
|
fn add_archive<F>(&mut self, archive_path: PathBuf, mut skip: F) -> std::io::Result<()>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue