Skip to content

Commit fb27a7d

Browse files
committed
Auto merge of rust-lang#77565 - khyperia:codegen-backend-dep, r=ecstatic-morse
Add -Z codegen-backend dylib to deps When the codegen-backend dylib changes, the program should be rebuilt. --- Unfortunately I was unable to test this works locally due to running into a TLS issue when running the custom backend, `thread 'rustc' panicked at 'no ImplicitCtxt stored in tls', compiler/rustc_middle/src/ty/context.rs:1750:54`, which seems similar to rust-lang#62717 but has a completely different cause and backtrace. `@eddyb` said to ping `@Mark-Simulacrum` about what they think about this, so, ping!
2 parents 9a8ca69 + ba22fbe commit fb27a7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/rustc_interface/src/passes.rs

+4
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ fn write_out_deps(
551551
.map(|fmap| escape_dep_filename(&fmap.unmapped_path.as_ref().unwrap_or(&fmap.name)))
552552
.collect();
553553

554+
if let Some(ref backend) = sess.opts.debugging_opts.codegen_backend {
555+
files.push(backend.to_string());
556+
}
557+
554558
if sess.binary_dep_depinfo() {
555559
boxed_resolver.borrow().borrow_mut().access(|resolver| {
556560
for cnum in resolver.cstore().crates_untracked() {

0 commit comments

Comments
 (0)