rustc: Stabilize options for pipelined compilation#62766
Merged
bors merged 1 commit intorust-lang:masterfrom Jul 30, 2019
Merged
rustc: Stabilize options for pipelined compilation#62766bors merged 1 commit intorust-lang:masterfrom
bors merged 1 commit intorust-lang:masterfrom
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 #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 #60419 and #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:
--jsonflag was added to the compiler.--jsonflag can be passed multiple times.--jsonflag is a comma-separated list ofdirectives.
--jsonflag cannot be combined with--color--jsonflag must be combined with--error-format=json--jsonare:diagnostic-short- therenderedfield of diagnostics will have a"short" rendering matching
--error-format=shortdiagnostic-rendered-ansi- therenderedfield of diagnosticswill be colorized with ansi color codes embedded in the string field
artifacts- JSON blobs will be emitted for artifacts being emittedby the compiler
The unstable
-Z emit-artifact-notificationsand--json-renderedflags have also been removed during this commit as well.
Closes #60419
Closes #60987
Closes #60988