Skip to content

Commit

Permalink
Add -Z codegen-backend dylib to deps
Browse files Browse the repository at this point in the history
When the codegen-backend dylib changes, the program should be rebuilt.
  • Loading branch information
khyperia committed Oct 5, 2020
1 parent efbaa41 commit ba22fbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_interface/src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ fn write_out_deps(
.map(|fmap| escape_dep_filename(&fmap.unmapped_path.as_ref().unwrap_or(&fmap.name)))
.collect();

if let Some(ref backend) = sess.opts.debugging_opts.codegen_backend {
files.push(backend.to_string());
}

if sess.binary_dep_depinfo() {
boxed_resolver.borrow().borrow_mut().access(|resolver| {
for cnum in resolver.cstore().crates_untracked() {
Expand Down

0 comments on commit ba22fbe

Please sign in to comment.