From 98ead3e636acf311dbc353a787be3788c12bd9e0 Mon Sep 17 00:00:00 2001 From: Michael Woerister Date: Wed, 1 Apr 2020 14:47:41 +0200 Subject: [PATCH] Update -Ccodegen-units docs wrt incr. comp. in rustc book. --- src/doc/rustc/src/codegen-options/index.md | 5 ++--- 1 file 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 0dc81378e05b2..8dc6257ce2e58 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