Skip to content

Commit c681a88

Browse files
committed
Don't include invalid paths in the depinfo for builtin backends
1 parent 9cfdb89 commit c681a88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_interface/src/passes.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,11 @@ fn write_out_deps(
648648

649649
if sess.binary_dep_depinfo() {
650650
if let Some(ref backend) = sess.opts.debugging_opts.codegen_backend {
651-
files.push(backend.to_string());
651+
if backend.contains('.') {
652+
// If the backend name contain a `.`, it is the path to an external dynamic
653+
// library. If not, it is not a path.
654+
files.push(backend.to_string());
655+
}
652656
}
653657

654658
boxed_resolver.borrow_mut().access(|resolver| {

0 commit comments

Comments
 (0)