aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
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
commitd44d2872b2ebe58237de4dbc350b82cab944ccc5 (patch)
treeeed9bd6af86d336dc70c0128a46a20cff69bfa81 /lib/Driver/Tools.cpp
parentfd61d6fe0aa9853f0577ca88a63901c3773e8101 (diff)
<rdar://problem/13434605> Periodically prune the module cache so that it does not grow forever.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index bff8848db0..c7e47ad111 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -2827,6 +2827,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// Pass through all -fmodules-ignore-macro arguments.
Args.AddAllArgs(CmdArgs, options::OPT_fmodules_ignore_macro);
+ Args.AddLastArg(CmdArgs, options::OPT_fmodules_prune_interval);
+ Args.AddLastArg(CmdArgs, options::OPT_fmodules_prune_after);
// -fmodules-autolink (on by default when modules is enabled) automatically
// links against libraries for imported modules. This requires the