diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-08-19 19:45:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 19:45:39 +0800 |
| commit | e39295235c0a0fa1cea9d554121f47d9ee1a9163 (patch) | |
| tree | fa9696ee7e2926a81e44592064c7bebc5979cb9a | |
| parent | b709cf50dbcc5017816857cf453c99aaca54b394 (diff) | |
| parent | cbfa17a9935809f8145c8083bef5f2203820c44a (diff) | |
| download | rust-e39295235c0a0fa1cea9d554121f47d9ee1a9163.tar.gz rust-e39295235c0a0fa1cea9d554121f47d9ee1a9163.zip | |
Rollup merge of #145533 - smoelius:patch-2, r=lqd
Reorder `lto` options from most to least optimizing This is a follow up to https://github.com/rust-lang/cargo/pull/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.
| -rw-r--r-- | src/doc/rustc/src/codegen-options/index.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md index 07eafdf4c4c..445b10188e3 100644 --- a/src/doc/rustc/src/codegen-options/index.md +++ b/src/doc/rustc/src/codegen-options/index.md @@ -375,12 +375,12 @@ linking time. It takes one of the following values: * `y`, `yes`, `on`, `true`, `fat`, or no value: perform "fat" LTO which attempts to perform optimizations across all crates within the dependency graph. -* `n`, `no`, `off`, `false`: disables LTO. * `thin`: perform ["thin" LTO](http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html). This is similar to "fat", but takes substantially less time to run while still achieving performance gains similar to "fat". For larger projects like the Rust compiler, ThinLTO can even result in better performance than fat LTO. +* `n`, `no`, `off`, `false`: disables LTO. If `-C lto` is not specified, then the compiler will attempt to perform "thin local LTO" which performs "thin" LTO on the local crate only across its |
