summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-11-16 18:43:16 +0000
committerAdrian Prantl <aprantl@apple.com>2018-11-16 18:43:16 +0000
commitc1e4f6a351d84f34d60f991c06fd1f43192c1070 (patch)
treebe6559fa11f940eebabc337e85ed5d445ce3f462
parent3bb8c70dfabf6af57dd280a26bd1edb2c818ef16 (diff)
downloadbcm5719-llvm-c1e4f6a351d84f34d60f991c06fd1f43192c1070.tar.gz
bcm5719-llvm-c1e4f6a351d84f34d60f991c06fd1f43192c1070.zip
Make path more robust so it also works with out-of-tree builds.
llvm-svn: 347071
-rw-r--r--lldb/lit/lit.cfg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/lit/lit.cfg.py b/lldb/lit/lit.cfg.py
index 8fd34da1caa..568e5a55853 100644
--- a/lldb/lit/lit.cfg.py
+++ b/lldb/lit/lit.cfg.py
@@ -128,8 +128,10 @@ llvm_config.feature_config(
# 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', 'module-cache-lldb']:
- cachedir = os.path.join(config.llvm_obj_root, 'lldb-test-build.noindex', i)
+ cachedir = os.path.join(config.lldb_libs_dir, '..',
+ 'lldb-test-build.noindex', i)
if os.path.isdir(cachedir):
print("Deleting module cache at %s."%cachedir)
shutil.rmtree(cachedir)
OpenPOWER on IntegriCloud