Skip to content

Commit 0645c3d

Browse files
lqdMark-Simulacrum
authored andcommitted
don't copy symbols from dylibs with -Zdylib-lto
1 parent ff4ca95 commit 0645c3d

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pub fn each_linked_rlib(
253253
};
254254
for &cnum in crates {
255255
match fmts.get(cnum.as_usize() - 1) {
256-
Some(&Linkage::NotLinked | &Linkage::IncludedFromDylib) => continue,
256+
Some(&Linkage::NotLinked | &Linkage::Dynamic | &Linkage::IncludedFromDylib) => continue,
257257
Some(_) => {}
258258
None => return Err(errors::LinkRlibError::MissingFormat),
259259
}

0 commit comments

Comments
 (0)