Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dep-info for link is wrong when --emit is given a path. #102166

Closed
TheDreadedAndy opened this issue Sep 23, 2022 · 2 comments
Closed

dep-info for link is wrong when --emit is given a path. #102166

TheDreadedAndy opened this issue Sep 23, 2022 · 2 comments
Labels
C-bug Category: This is a bug. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.

Comments

@TheDreadedAndy
Copy link

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 contained libforward.so: rust/proc-macro/forward/forward.rs instead of rust/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

@TheDreadedAndy TheDreadedAndy added the C-bug Category: This is a bug. label Sep 23, 2022
@Enselic
Copy link
Member

Enselic commented Jul 10, 2024

Triage: Can you still reproduce after #68839 was fixed?

@jieyouxu jieyouxu added S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage-legacy labels Nov 12, 2024
@jieyouxu
Copy link
Member

Triage: closing due to missing recent repro, please feel free to reopen if this is still a problem.

@jieyouxu jieyouxu closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.
Projects
None yet
Development

No branches or pull requests

4 participants