diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-02-02 22:17:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-02 22:17:13 +0000 |
commit | cd94cf8995bcddc40e627e94037e549b7a18b20e (patch) | |
tree | 309dea74fed132ce63058abf99e81a7e44ed1c43 /docs/markdown/snippets | |
parent | 65b3d67c7e55ef4ccee496f53d18af859711b29e (diff) | |
parent | 6f532b72c85e38880cf7953098bb91e8f3feb696 (diff) | |
download | meson-cd94cf8995bcddc40e627e94037e549b7a18b20e.zip meson-cd94cf8995bcddc40e627e94037e549b7a18b20e.tar.gz meson-cd94cf8995bcddc40e627e94037e549b7a18b20e.tar.bz2 |
Merge pull request #8087 from dcbaker/submit/lto-extensions
Add option for thinLTO
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/lto_mode.md | 5 | ||||
-rw-r--r-- | docs/markdown/snippets/lto_threads.md | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/lto_mode.md b/docs/markdown/snippets/lto_mode.md new file mode 100644 index 0000000..c1df066 --- /dev/null +++ b/docs/markdown/snippets/lto_mode.md @@ -0,0 +1,5 @@ +## Support added for LLVM's thinLTO + +A new `b_lto_mode` option has been added, which may be set to `default` or +`thin`. Thin only works for clang, and only with gnu gold, lld variants, or +ld64. 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. |