Commit b6281e8
authored
Fix linker-plugin-lto: use
* Fix linker-plugin-lto: use `-flto=thin`
The linker-plugin/lld uses thin LTO by default, and it requires the archive to be compiled
with thin LTO as well, since thin LTO generates function summary
which is needed by thin LTO.
* Clarify purpose of unused 'lto' variable in flags.rs
Added a comment explaining the purpose of the unused 'lto' variable.
* Update comments on thin LTO for linker plugin
Clarify comments regarding thin LTO requirements for linker plugin.-flto=thin (#1594)1 parent beda6e0 commit b6281e8
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| |||
0 commit comments