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: Stabilize options for pipelined compilation #62766

Merged
merged 1 commit into from
Jul 30, 2019

Commits on Jul 26, 2019

  1. rustc: Stabilize options for pipelined compilation

    This commit stabilizes options in the compiler necessary for Cargo to
    enable "pipelined compilation" by default. The concept of pipelined
    compilation, how it's implemented, and what it means for rustc are
    documented in rust-lang#60988. This PR is coupled with a PR against Cargo
    (rust-lang/cargo#7143) which updates Cargo's support for pipelined
    compliation to rustc, and also enables support by default in Cargo.
    (note that the Cargo PR cannot land until this one against rustc lands).
    
    The technical changes performed here were to stabilize the functionality
    proposed in rust-lang#60419 and rust-lang#60987, the underlying pieces to enable pipelined
    compilation support in Cargo. The issues have had some discussion during
    stabilization, but the newly stabilized surface area here is:
    
    * A new `--json` flag was added to the compiler.
    * The `--json` flag can be passed multiple times.
    * The value of the `--json` flag is a comma-separated list of
      directives.
    * The `--json` flag cannot be combined with `--color`
    * The `--json` flag must be combined with `--error-format=json`
    * The acceptable list of directives to `--json` are:
      * `diagnostic-short` - the `rendered` field of diagnostics will have a
        "short" rendering matching `--error-format=short`
      * `diagnostic-rendered-ansi` - the `rendered` field of diagnostics
        will be colorized with ansi color codes embedded in the string field
      * `artifacts` - JSON blobs will be emitted for artifacts being emitted
        by the compiler
    
    The unstable `-Z emit-artifact-notifications` and `--json-rendered`
    flags have also been removed during this commit as well.
    
    Closes rust-lang#60419
    Closes rust-lang#60987
    Closes rust-lang#60988
    alexcrichton committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    1731233 View commit details
    Browse the repository at this point in the history