Fix each_linked_rlib when the current crate has 0 crate types

This commit is contained in:
bjorn3 2023-01-04 13:37:38 +00:00
parent ed77a61901
commit 7705116708

View File

@ -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