Skip to content

Output of independent artefacts might differ depending on unrelated options #22183

Open
@nagisa

Description

@nagisa

Existence or lack of --crate-type=bin may influence output of other crate-type outputs. In general libfoo.a output by --crate-type=bin,staticlib and --crate-type=staticlib might be completely different.

For example using this foo.rs, this is the list of a few first symbols when built with --crate-type=bin,staticlib and this, when bin crate-type is absent.

This is a quirk in rust’s entry point semantics and how current middle/entry.rs is implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CLIArea: Command-line interface (CLI) to the compilerC-bugCategory: This is a bug.I-needs-decisionIssue: In need of a decision.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