Skip to content

Commit

Permalink
Don't include invalid paths in the depinfo for builtin backends
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Mar 24, 2022
1 parent 9cfdb89 commit c681a88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compiler/rustc_interface/src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,11 @@ fn write_out_deps(

if sess.binary_dep_depinfo() {
if let Some(ref backend) = sess.opts.debugging_opts.codegen_backend {
files.push(backend.to_string());
if backend.contains('.') {
// If the backend name contain a `.`, it is the path to an external dynamic
// library. If not, it is not a path.
files.push(backend.to_string());
}
}

boxed_resolver.borrow_mut().access(|resolver| {
Expand Down

0 comments on commit c681a88

Please sign in to comment.