Fix each_linked_rlib when the current crate has 0 crate types
This commit is contained in:
parent
ed77a61901
commit
7705116708
1 changed files with 3 additions and 0 deletions
|
@ -230,6 +230,9 @@ pub fn each_linked_rlib(
|
|||
});
|
||||
}
|
||||
}
|
||||
if info.dependency_formats.is_empty() {
|
||||
return Err(errors::LinkRlibError::MissingFormat);
|
||||
}
|
||||
&info.dependency_formats[0].1
|
||||
} else {
|
||||
let fmts = info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue