Skip to content

Cannot emit metadata,obj without link #81117

Closed
@ojeda

Description

@ojeda

Requesting both metadata and obj without link fails:

$ echo | rustc --crate-type rlib --emit=metadata,obj -

The output files are created, but the compiler thinks it still has to build the archive:

error: failed to build archive: No such file or directory

The same behavior happens for other metadata + non-link combinations.

Meta

Both latest stable (1.49.0) and nightly exhibit the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions