Skip to content

Commit

Permalink
Try~
Browse files Browse the repository at this point in the history
  • Loading branch information
DianQK committed Nov 2, 2023
1 parent ce3bc8b commit 75928bd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compiler/rustc_codegen_ssa/src/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,12 @@ pub fn each_linked_rlib(

for &cnum in crates {
match fmts.get(cnum.as_usize() - 1) {
Some(&Linkage::NotLinked | &Linkage::Dynamic | &Linkage::IncludedFromDylib) => continue,
Some(&Linkage::NotLinked | &Linkage::Dynamic) => continue,
Some(&Linkage::IncludedFromDylib) => {
if info.compiler_builtins != Some(cnum) {
continue;
}
}
Some(_) => {}
None => return Err(errors::LinkRlibError::MissingFormat),
}
Expand Down

0 comments on commit 75928bd

Please sign in to comment.