Fix "Remove src_files and remove_file"
This commit is contained in:
parent
43929a8a75
commit
7ff0df5102
5 changed files with 20 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue