Add -Z codegen-backend dylib to deps

When the codegen-backend dylib changes, the program should be rebuilt.
This commit is contained in:
khyperia 2020-10-05 09:46:03 +02:00
parent efbaa41306
commit ba22fbe584

View file

@ -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() {