Skip to content

rustc --print file-names wrongly prints .rlib for --emit=metadata  #54852

Open
@Marwes

Description

@Marwes

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).

See mozilla/sccache#301 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions