File tree 1 file changed +7
-5
lines changed
compiler/rustc_session/src
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -75,19 +75,21 @@ impl_stable_hash_via_hash!(OptLevel);
75
75
76
76
/// This is what the `LtoCli` values get mapped to after resolving defaults and
77
77
/// and taking other command line options into account.
78
+ ///
79
+ /// Note that linker plugin-based LTO is a different mechanism entirely.
78
80
#[ derive( Clone , PartialEq ) ]
79
81
pub enum Lto {
80
- /// Don't do any LTO whatsoever
82
+ /// Don't do any LTO whatsoever.
81
83
No ,
82
84
83
- /// Do a full crate graph LTO with ThinLTO
85
+ /// Do a full- crate- graph (inter-crate) LTO with ThinLTO.
84
86
Thin ,
85
87
86
- /// Do a local graph LTO with ThinLTO (only relevant for multiple codegen
87
- /// units) .
88
+ /// Do a local ThinLTO (intra-crate, over the CodeGen Units of the local crate only). This is
89
+ /// only relevant if multiple CGUs are used .
88
90
ThinLocal ,
89
91
90
- /// Do a full crate graph LTO with "fat" LTO
92
+ /// Do a full- crate- graph (inter-crate) LTO with "fat" LTO.
91
93
Fat ,
92
94
}
93
95
You can’t perform that action at this time.
0 commit comments