[Lldb-commits] [PATCH] D54602: Use a shared module cache directory for LLDB.
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 15 14:30:49 PST 2018
aprantl created this revision.
aprantl added reviewers: JDevlieghere, davide, jingham, vsk.
aprantl added a dependency: D54601: Makefile.rules: Use a shared clang module cache directory..
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
https://reviews.llvm.org/D54602
Files:
lit/lit.cfg.py
packages/Python/lldbsuite/test/lldbtest.py
Index: packages/Python/lldbsuite/test/lldbtest.py
===================================================================
--- packages/Python/lldbsuite/test/lldbtest.py
+++ packages/Python/lldbsuite/test/lldbtest.py
@@ -1862,8 +1862,9 @@
# 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)
Index: lit/lit.cfg.py
===================================================================
--- lit/lit.cfg.py
+++ lit/lit.cfg.py
@@ -128,7 +128,7 @@
# Clean the module caches in the test build directory. This is
# necessary in an incremental build whenever clang changes underneath,
# so doing it once per lit.py invocation is close enough.
-for i in ['module-cache-clang']:
+for i in ['module-cache-clang', 'module-cache-lldb']:
cachedir = os.path.join(config.llvm_obj_root, 'lldb-test-build.noindex', i)
if os.path.isdir(cachedir):
print("Deleting module cache at %s."%cachedir)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54602.174286.patch
Type: text/x-patch
Size: 1318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181115/e8bdbd9f/attachment-0001.bin>
More information about the lldb-commits
mailing list