Only add codegen backend to dep info if -Zbinary-dep-depinfo is used
This commit is contained in:
parent
d2df372bca
commit
9cfdb89999
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue