1
Fork 0

Fix "Remove src_files and remove_file"

This commit is contained in:
bjorn3 2022-06-18 17:55:24 +00:00
parent 43929a8a75
commit 7ff0df5102
5 changed files with 20 additions and 10 deletions

View file

@ -50,7 +50,7 @@ pub trait ArchiveBuilder<'a> {
where
F: FnMut(&str) -> bool + 'static;
fn build(self);
fn build(self) -> bool;
fn inject_dll_import_lib(
&mut self,

View file

@ -2503,8 +2503,9 @@ fn add_upstream_rust_crates<'a, B: ArchiveBuilder<'a>>(
}) {
sess.fatal(&format!("failed to build archive from rlib: {}", e));
}
archive.build();
link_upstream(&dst);
if archive.build() {
link_upstream(&dst);
}
});
}