From 673dca5c0716d4e9527c055a8a20fa11e1893c5b Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Sat, 11 Jun 2022 01:00:31 +0900 Subject: Add b_thinlto_cache for automatically configuring incremental ThinLTO --- docs/markdown/snippets/thinlto_cache.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/markdown/snippets/thinlto_cache.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/thinlto_cache.md b/docs/markdown/snippets/thinlto_cache.md new file mode 100644 index 0000000..5c6e202 --- /dev/null +++ b/docs/markdown/snippets/thinlto_cache.md @@ -0,0 +1,8 @@ +## Incremental ThinLTO with `b_thinlto_cache` + +[Incremental ThinLTO](https://clang.llvm.org/docs/ThinLTO.html#incremental) can now be enabled by passing +`-Db_thinlto_cache=true` during setup. The use of caching speeds up incremental builds significantly while retaining all +the runtime performance benefits of ThinLTO. + +The cache location defaults to a Meson-managed directory inside the build folder, but can be customized with +`b_thinlto_cache_dir`. -- cgit v1.1