Skip to content

Commit ef648f4

Browse files
Remove invalid assertion back::link::from add_upstream_rust_crates().
1 parent e43f99c commit ef648f4

File tree

1 file changed

+0
-4
lines changed
  • src/librustc_codegen_llvm/back

1 file changed

+0
-4
lines changed

src/librustc_codegen_llvm/back/link.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,10 +1396,6 @@ fn add_upstream_rust_crates(cmd: &mut dyn Linker,
13961396

13971397
// Same thing as above, but for dynamic crates instead of static crates.
13981398
fn add_dynamic_crate(cmd: &mut dyn Linker, sess: &Session, cratepath: &Path) {
1399-
// If we're performing LTO, then it should have been previously required
1400-
// that all upstream rust dependencies were available in an rlib format.
1401-
assert!(!are_upstream_rust_objects_already_included(sess));
1402-
14031399
// Just need to tell the linker about where the library lives and
14041400
// what its name is
14051401
let parent = cratepath.parent();

0 commit comments

Comments
 (0)