File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,10 @@ The valid options are:
155
155
156
156
#### lto
157
157
158
- The ` lto ` setting controls the [ ` -C lto ` flag] which controls LLVM's [ link
159
- time optimizations] . LTO can produce better optimized code, using
160
- whole-program analysis, at the cost of longer linking time.
158
+ The ` lto ` setting controls ` rustc ` 's [ ` -C lto ` ] , [ ` -C linker-plugin-lto ` ] , and
159
+ [ ` -C embed-bitcode ` ] options, which control LLVM's [ link time optimizations] .
160
+ LTO can produce better optimized code, using whole-program analysis, at the cost
161
+ of longer linking time.
161
162
162
163
The valid options are:
163
164
@@ -171,11 +172,15 @@ The valid options are:
171
172
similar to "fat".
172
173
* ` "off" ` : Disables LTO.
173
174
174
- See also the [ ` -C linker-plugin-lto ` ] ` rustc ` flag for cross-language LTO.
175
+ See the [ linker-plugin-lto chapter] if you are interested in cross-language LTO.
176
+ This is not yet supported natively in Cargo, but can be performed via
177
+ ` RUSTFLAGS ` .
175
178
176
- [ `-C lto` flag ] : ../../rustc/codegen-options/index.html#lto
179
+ [ `-C lto` ] : ../../rustc/codegen-options/index.html#lto
177
180
[ link time optimizations ] : https://llvm.org/docs/LinkTimeOptimization.html
178
181
[ `-C linker-plugin-lto` ] : ../../rustc/codegen-options/index.html#linker-plugin-lto
182
+ [ `-C embed-bitcode` ] : ../../rustc/codegen-options/index.html#embed-bitcode
183
+ [ linker-plugin-lto chapter ] : ../../rustc/linker-plugin-lto.html
179
184
[ "thin" LTO ] : http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
180
185
181
186
#### panic
You can’t perform that action at this time.
0 commit comments