summaryrefslogtreecommitdiffstats
path: root/clang/docs/Modules.rst
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-03-25 21:19:16 +0000
committerDouglas Gregor <dgregor@apple.com>2013-03-25 21:19:16 +0000
commit527b1c95df4cd958acaca616662ce3777dfbe97e (patch)
tree9fcbceddb234305591a263dd4f92ffec53beef77 /clang/docs/Modules.rst
parent5bd02926b47bfc550d002f1396f893422ed64947 (diff)
downloadbcm5719-llvm-527b1c95df4cd958acaca616662ce3777dfbe97e.tar.gz
bcm5719-llvm-527b1c95df4cd958acaca616662ce3777dfbe97e.zip
<rdar://problem/13434605> Periodically prune the module cache so that it does not grow forever.
llvm-svn: 177918
Diffstat (limited to 'clang/docs/Modules.rst')
-rw-r--r--clang/docs/Modules.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/Modules.rst b/clang/docs/Modules.rst
index ba55892cde4..b892e382fc9 100644
--- a/clang/docs/Modules.rst
+++ b/clang/docs/Modules.rst
@@ -174,6 +174,12 @@ Command-line parameters
``-fmodules-ignore-macro=macroname``
Instruct modules to ignore the named macro when selecting an appropriate module variant. Use this for macros defined on the command line that don't affect how modules are built, to improve sharing of compiled module files.
+``-fmodules-prune-interval=seconds``
+ Specify the minimum delay (in seconds) between attempts to prune the module cache. Module cache pruning attempts to clear out old, unused module files so that the module cache itself does not grow without bound. The default delay is large (604,800 seconds, or 7 days) because this is an expensive operation. Set this value to 0 to turn off pruning.
+
+``-fmodules-prune-after=seconds``
+ Specify the minimum time (in seconds) for which a file in the module cache must be unused (according to access time) before module pruning will remove it. The default delay is large (2,678,400 seconds, or 31 days) to avoid excessive module rebuilding.
+
Module Map Language
===================
OpenPOWER on IntegriCloud