mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 11:23:03 +00:00
Fix each_linked_rlib when the current crate has 0 crate types
This commit is contained in:
parent
ed77a61901
commit
7705116708
@ -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
|
&info.dependency_formats[0].1
|
||||||
} else {
|
} else {
|
||||||
let fmts = info
|
let fmts = info
|
||||||
|
Loading…
Reference in New Issue
Block a user