diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-02-13 19:21:33 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-24 16:16:10 +0100 |
| commit | 9cfdb89999d3bdefc6c45047bbacb48c2416b5e8 (patch) | |
| tree | 9aad8ad891ca87630c8de8d7acb5d3a84ddafc71 /compiler/rustc_interface/src | |
| parent | d2df372bca13bb60979c909660e69f2451630e81 (diff) | |
| download | rust-9cfdb89999d3bdefc6c45047bbacb48c2416b5e8.tar.gz rust-9cfdb89999d3bdefc6c45047bbacb48c2416b5e8.zip | |
Only add codegen backend to dep info if -Zbinary-dep-depinfo is used
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 4f30e78f5e2..7640b9a7413 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -646,11 +646,11 @@ fn write_out_deps( }); files.extend(extra_tracked_files); - if let Some(ref backend) = sess.opts.debugging_opts.codegen_backend { - files.push(backend.to_string()); - } - if sess.binary_dep_depinfo() { + if let Some(ref backend) = sess.opts.debugging_opts.codegen_backend { + files.push(backend.to_string()); + } + boxed_resolver.borrow_mut().access(|resolver| { for cnum in resolver.cstore().crates_untracked() { let source = resolver.cstore().crate_source_untracked(cnum); |
