diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-11-16 16:19:07 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-11-16 16:19:07 +0000 |
commit | ddc01238b160c109f94c9dd3b5d76da308f34304 (patch) | |
tree | 8050bbcfe7706f46c2cd4237d01e38ba8a48bacb /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
parent | d1b33162b56606daede57e59594b92038b9a5d7c (diff) | |
download | bcm5719-llvm-ddc01238b160c109f94c9dd3b5d76da308f34304.tar.gz bcm5719-llvm-ddc01238b160c109f94c9dd3b5d76da308f34304.zip |
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.
<rdar://problem/36002081>
Differential Revision: https://reviews.llvm.org/D54602
llvm-svn: 347057
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |