-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Open
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
For sccache to cache rustc builds it uses rustc --print file-names
to figure out which files get emitted so it cache them for later. For --emit metadata
builds it appears that rustc
prints that it would emit a .rlib
file which seems to be false, only .rmeta
files get emitted.
Trying to find out where this happens but so far no luck (it might actually be correct behavior and the fix should be in sccache).
Metadata
Metadata
Assignees
Labels
A-driverArea: rustc_driver that ties everything together into the `rustc` compilerArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
luser commentedon May 28, 2019
cargo nightly will now invoke rustc with
--emit=dep-info,metadata,link
, but runningrustc --emit=dep-info,metadata,link --print=file-names
still doesn't print the rmeta name, which isn't good.rust: workaround --print file-names emitting staticlibs / dylibs.
rust: workaround --print file-names emitting staticlibs / dylibs.
Enselic commentedon Nov 20, 2023
Triage: It seems to me as if
--print file-names
does what it says it does? It's documentation is:Note that it does not claim to print the name of the metadata file.