Skip to content

Commit b8e8c24

Browse files
authored
Rollup merge of #145533 - smoelius:patch-2, r=lqd
Reorder `lto` options from most to least optimizing This is a follow up to rust-lang/cargo#15841. `@weihanglo` pointed out the original order of the `lto` options in the Cargo book was consistent with https://doc.rust-lang.org/rustc/codegen-options/index.html?highlight=lto#lto. The options in the Cargo book have since been reordered. This PR keeps the two references consistent.
2 parents 9215495 + cbfa17a commit b8e8c24

File tree

1 file changed

+1
-1
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+1
-1
lines changed

src/doc/rustc/src/codegen-options/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ linking time. It takes one of the following values:
375375

376376
* `y`, `yes`, `on`, `true`, `fat`, or no value: perform "fat" LTO which attempts to
377377
perform optimizations across all crates within the dependency graph.
378-
* `n`, `no`, `off`, `false`: disables LTO.
379378
* `thin`: perform ["thin"
380379
LTO](http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html).
381380
This is similar to "fat", but takes substantially less time to run while
382381
still achieving performance gains similar to "fat".
383382
For larger projects like the Rust compiler, ThinLTO can even result in better performance than fat LTO.
383+
* `n`, `no`, `off`, `false`: disables LTO.
384384

385385
If `-C lto` is not specified, then the compiler will attempt to perform "thin
386386
local LTO" which performs "thin" LTO on the local crate only across its

0 commit comments

Comments
 (0)