summaryrefslogtreecommitdiffstats
path: root/clang/docs/ThinLTO.rst
diff options
context:
space:
mode:
Diffstat (limited to 'clang/docs/ThinLTO.rst')
-rw-r--r--clang/docs/ThinLTO.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/docs/ThinLTO.rst b/clang/docs/ThinLTO.rst
index 71a23380efb..31fff51a61e 100644
--- a/clang/docs/ThinLTO.rst
+++ b/clang/docs/ThinLTO.rst
@@ -146,6 +146,18 @@ Possible key-value pairs are:
disk space. A value over 100 is invalid. A value of 0 disables the percentage
size-based pruning. The default is 75%.
+- ``cache_size_bytes=X``, ``cache_size_bytes=Xk``, ``cache_size_bytes=Xm``,
+ ``cache_size_bytes=Xg``:
+ Sets the maximum size for the cache directory to ``X`` bytes (or KB, MB,
+ GB respectively). A value over the amount of available space on the disk
+ will be reduced to the amount of available space. A value of 0 disables
+ the byte size-based pruning. The default is no byte size-based pruning.
+
+ Note that ThinLTO will apply both size-based pruning policies simultaneously,
+ and changing one does not affect the other. For example, a policy of
+ ``cache_size_bytes=1g`` on its own will cause both the 1GB and default 75%
+ policies to be applied unless the default ``cache_size`` is overridden.
+
- ``prune_after=Xs``, ``prune_after=Xm``, ``prune_after=Xh``: Sets the
expiration time for cache files to ``X`` seconds (or minutes, hours
respectively). When a file hasn't been accessed for ``prune_after`` seconds,
OpenPOWER on IntegriCloud