diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-13 19:24:15 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-24 16:16:11 +0100 |
| commit | c681a884efa99cd14301553aacc42b702eac8b00 (patch) | |
| tree | 6ad2e29a43316f1535fe1519c9598cb5a806b413 /compiler/rustc_interface/src | |
| parent | 9cfdb89999d3bdefc6c45047bbacb48c2416b5e8 (diff) | |
| download | rust-c681a884efa99cd14301553aacc42b702eac8b00.tar.gz rust-c681a884efa99cd14301553aacc42b702eac8b00.zip | |
Don't include invalid paths in the depinfo for builtin backends
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 7640b9a7413..5a4b4df6772 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -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| { |
