Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc: Flag metadata compatible with multiple CGUs #60270

Merged
merged 1 commit into from
Apr 28, 2019

Commits on Apr 25, 2019

  1. rustc: Flag metadata compatible with multiple CGUs

    It looks like the `OutputType::Metadata` kind in the compiler was
    misclassified in rust-lang#38571 long ago by accident as incompatible with
    codegen units and a single output file. This means that if you emit both
    a linkable artifact and metadata it silently turns off multiple codegen
    units unintentionally!
    
    This commit corrects the situation to ensure that if `--emit metadata`
    is used it doesn't implicitly disable multiple codegen units. This will
    ensure we don't accidentally regress compiler performance when striving
    to implement pipelined compilation!
    alexcrichton committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    955f283 View commit details
    Browse the repository at this point in the history