From ddc01238b160c109f94c9dd3b5d76da308f34304 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Fri, 16 Nov 2018 16:19:07 +0000 Subject: Use a shared module cache directory for LLDB. This saves about 3 redundant gigabytes from the Objective-C test build directories. Tests that must do unsavory things with the LLDB clang module cache, already specify a per-test module cache in their .py test instructions. Differential Revision: https://reviews.llvm.org/D54602 llvm-svn: 347057 --- lldb/packages/Python/lldbsuite/test/lldbtest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py') diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 9b1aefffdf2..0606dce43a9 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -1862,8 +1862,9 @@ class TestBase(Base): # decorators. Base.setUp(self) - # Set the clang modules cache path. - mod_cache = os.path.join(self.getBuildDir(), "module-cache-lldb") + # Set the clang modules cache path used by LLDB. + mod_cache = os.path.join(os.path.join(os.environ["LLDB_BUILD"], + "module-cache-lldb")) self.runCmd('settings set symbols.clang-modules-cache-path "%s"' % mod_cache) -- cgit v1.2.3