Skip to content

Commit cbfa17a

Browse files
authored
Reorder lto options from most to least optimizing
1 parent 425a9c0 commit cbfa17a

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)