aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-12-10 13:50:31 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-02-02 12:42:48 -0800
commitbffc94b08f713cc9916009575664b132aee76bcf (patch)
tree416e0f7e8686cb3f5c17093664e0691edec7904f /docs/markdown/snippets
parentf31ffaaf1754e4578127049844c14eba6bdda477 (diff)
downloadmeson-bffc94b08f713cc9916009575664b132aee76bcf.zip
meson-bffc94b08f713cc9916009575664b132aee76bcf.tar.gz
meson-bffc94b08f713cc9916009575664b132aee76bcf.tar.bz2
compilers: Add support for using multiple threads with lto
Both Clang and GCC support using multiple threads for preforming link time optimizaions, and they can now be configured using the `-Db_lto_threads` option. Fixes #7820
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/lto_threads.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/lto_threads.md b/docs/markdown/snippets/lto_threads.md
new file mode 100644
index 0000000..a6f7614
--- /dev/null
+++ b/docs/markdown/snippets/lto_threads.md
@@ -0,0 +1,7 @@
+## Knob to control LTO thread
+
+Both the gnu linker and lld support using threads for speading 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 implemnets it's on `auto` we use that,
+otherwise the number of threads on the machine is used.