Rollup merge of #82316 - ehuss:lto-doc-fix, r=GuillaumeGomez

Fix minor mistake in LTO docs.

`-C lto=true` isn't a valid option.
This commit is contained in:
Guillaume Gomez 2021-02-20 20:37:03 +01:00 committed by GitHub
commit 77b6f96054
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,9 +299,9 @@ opt-level=0`](#opt-level)). That is:
* When `-C lto` is not specified:
* `codegen-units=1`: disable LTO.
* `opt-level=0`: disable LTO.
* When `-C lto=true`:
* `lto=true`: 16 codegen units, perform fat LTO across crates.
* `codegen-units=1` + `lto=true`: 1 codegen unit, fat LTO across crates.
* When `-C lto` is specified:
* `lto`: 16 codegen units, perform fat LTO across crates.
* `codegen-units=1` + `lto`: 1 codegen unit, fat LTO across crates.
See also [linker-plugin-lto](#linker-plugin-lto) for cross-language LTO.