Skip to content

--lib and --rlib should override crate type specified in source. #11573

Closed
@SiegeLord

Description

@SiegeLord

Currently if you have a crate with the following contents:

[crate_type="lib"];

and you compile it like this rustc --rlib test.rs you'll get both an .rlib and a .so file. I expect that command to emit only the .rlib file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions