summaryrefslogtreecommitdiffstats
path: root/clang/docs/ThinLTO.rst
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-09-08 00:50:50 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-09-08 00:50:50 +0000
commit052e855e2bea78dcfbb2807acee829b56d56a729 (patch)
tree8bf45989bc7fcdb20fc786d32d838e7b620e3f18 /clang/docs/ThinLTO.rst
parentd63b2f39966b995db51796dc8e269b43b455949e (diff)
downloadbcm5719-llvm-052e855e2bea78dcfbb2807acee829b56d56a729.tar.gz
bcm5719-llvm-052e855e2bea78dcfbb2807acee829b56d56a729.zip
COFF: Implement ThinLTO cache and cache pruning support.
Differential Revision: https://reviews.llvm.org/D37607 llvm-svn: 312770
Diffstat (limited to 'clang/docs/ThinLTO.rst')
-rw-r--r--clang/docs/ThinLTO.rst16
1 files changed, 10 insertions, 6 deletions
diff --git a/clang/docs/ThinLTO.rst b/clang/docs/ThinLTO.rst
index 31fff51a61e..71b1d5d6330 100644
--- a/clang/docs/ThinLTO.rst
+++ b/clang/docs/ThinLTO.rst
@@ -119,23 +119,27 @@ Incremental
ThinLTO supports fast incremental builds through the use of a cache,
which currently must be enabled through a linker option.
-- gold (as of LLVM r279883):
+- gold (as of LLVM 4.0):
``-Wl,-plugin-opt,cache-dir=/path/to/cache``
- ld64 (support in clang 3.9 and Xcode 8):
``-Wl,-cache_path_lto,/path/to/cache``
-- lld (as of LLVM r296702):
+- ELF lld (as of LLVM 5.0):
``-Wl,--thinlto-cache-dir=/path/to/cache``
+- COFF lld (as of LLVM 6.0):
+ ``/lldltocache:/path/to/cache``
Cache Pruning
-------------
To help keep the size of the cache under control, ThinLTO supports cache
-pruning. Cache pruning is supported with ld64 and ELF lld, but currently only
-ELF lld allows you to control the policy with a policy string. The cache
-policy must be specified with a linker option.
+pruning. Cache pruning is supported with ld64 and ELF and COFF lld, but
+currently only ELF and COFF lld allow you to control the policy with a
+policy string. The cache policy must be specified with a linker option.
-- ELF lld (as of LLVM r298036):
+- ELF lld (as of LLVM 5.0):
``-Wl,--thinlto-cache-policy,POLICY``
+- COFF lld (as of LLVM 6.0):
+ ``/lldltocachepolicy:POLICY``
A policy string is a series of key-value pairs separated by ``:`` characters.
Possible key-value pairs are:
OpenPOWER on IntegriCloud