diff options
| author | bors <bors@rust-lang.org> | 2023-06-14 02:34:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-14 02:34:17 +0000 |
| commit | fa8762b7b6c2b75d6c83fb011ee8fa4874168829 (patch) | |
| tree | 01687f18762f668dd6d7574380948424a2a12acd /src | |
| parent | 6330daade9766bbf896495898c2347dc3be6da17 (diff) | |
| parent | 7c3ce02a1124b008addb9764173ad441f4741c00 (diff) | |
| download | rust-fa8762b7b6c2b75d6c83fb011ee8fa4874168829.tar.gz rust-fa8762b7b6c2b75d6c83fb011ee8fa4874168829.zip | |
Auto merge of #112448 - nnethercote:no-tiny-cgus, r=wesleywiser
Introduce a minimum CGU size in non-incremental builds. Because tiny CGUs slow down compilation *and* result in worse generated code. r? `@wesleywiser`
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/rustc/src/codegen-options/index.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 1041d502669..8de638dde4f 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -31,8 +31,8 @@ Supported values can also be discovered by running `rustc --print code-models`. ## codegen-units -This flag controls how many code generation units the crate is split into. It -takes an integer greater than 0. +This flag controls the maximum number of code generation units the crate is +split into. It takes an integer greater than 0. When a crate is split into multiple codegen units, LLVM is able to process them in parallel. Increasing parallelism may speed up compile times, but may |
