diff options
| author | bors <bors@rust-lang.org> | 2020-04-03 23:50:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-03 23:50:01 +0000 |
| commit | 9e55101bb681010c82c3c827305e2665fc8f2aa0 (patch) | |
| tree | b08b1e7393e70a5f41a3c6cb38a568ccf8c0c8ec /src/doc | |
| parent | 74bd074eefcf4915c73d1ab91bc90859664729e6 (diff) | |
| parent | 98ead3e636acf311dbc353a787be3788c12bd9e0 (diff) | |
Auto merge of #70156 - michaelwoerister:incr-cgus, r=nikomatsakis
Make the rustc respect the `-C codegen-units` flag in incremental mode. This PR implements (the as of yet unapproved) major change proposal at https://github.com/rust-lang/compiler-team/issues/245. See the description there for background and rationale. The changes are pretty straightforward and should be easy to rebase if the proposal gets accepted at some point. r? @nikomatsakis cc @pnkfelix
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/rustc/src/codegen-options/index.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 0dc81378e05..8dc6257ce2e 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -257,9 +257,8 @@ them in parallel. Increasing parallelism may speed up compile times, but may also produce slower code. Setting this to 1 may improve the performance of generated code, but may be slower to compile. -The default, if not specified, is 16. This flag is ignored if -[incremental](#incremental) is enabled, in which case an internal heuristic is -used to split the crate. +The default, if not specified, is 16 for non-incremental builds. For +incremental builds the default is 256 which allows caching to be more granular. ## remark |
