aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/lto_threads.md
blob: 77c8047585cc2d2a8914adb4625167164e93aba4 (plain)
1
2
3
4
5
6
7
## Knob to control LTO thread

Both the gnu linker and lld support using threads for speeding up LTO, meson
now provides a knob for this: `-Db_lto_threads`. Currently this is only
supported for clang and gcc. Any positive integer is supported, `0` means
`auto`. If the compiler or linker implements it's on `auto` we use that,
otherwise the number of threads on the machine is used.