linker: Fix weak lang item linking with combination windows-gnu + LLD + LTO

This commit is contained in:
Vadim Petrochenkov
2022-10-15 22:01:28 +04:00
parent b8c35ca26b
commit acf51e1345
2 changed files with 9 additions and 4 deletions

View File

@@ -2690,7 +2690,7 @@ fn relevant_lib(sess: &Session, lib: &NativeLib) -> bool {
}
}
fn are_upstream_rust_objects_already_included(sess: &Session) -> bool {
pub(crate) fn are_upstream_rust_objects_already_included(sess: &Session) -> bool {
match sess.lto() {
config::Lto::Fat => true,
config::Lto::Thin => {