Skip to content

Commit 19280c5

Browse files
committed
Ignore input objects that don't contain embedded bitcode
This case is only hit by tests when running with TESTS_HOST_TARGET=1, processing symbols.o. See rust-lang/rust@773f533
1 parent 734775d commit 19280c5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/linker.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,13 @@ impl Linker {
273273
}
274274
ty => {
275275
info!("linking file {:?} type {}", path, ty);
276-
self.link_reader(&path, file, Some(ty))?;
276+
match self.link_reader(&path, file, Some(ty)) {
277+
Ok(_) => {}
278+
Err(LinkerError::MissingBitcodeSection(_)) => {
279+
warn!("ignoring file {:?}: no embedded bitcode", path);
280+
}
281+
err => return err,
282+
}
277283
}
278284
}
279285
}

0 commit comments

Comments
 (0)