dep-info for link is wrong when --emit is given a path. #102166
Labels
C-bug
Category: This is a bug.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
When compiling with
--emit link=path,dep-info
, the resulting dependency file is wrong.Instead of containing the given path for
link
, the dependency file will contain the platform dependent default name for that link option. For example, I passed rustc the flags--crate-type proc-macro --emit link=rust/build/output/libforward.so,dep-info=rust/build/output/forward.d
, and the resulting dependency file containedlibforward.so: rust/proc-macro/forward/forward.rs
instead ofrust/build/output/libforward.so: rust/proc-macro-forward/forward.rs
.I observed this issue with both the rlib and proc-macro crate types on nightly 1.64.0.
Similar issue: #68839
The text was updated successfully, but these errors were encountered: