[Lldb-commits] [lldb] r347071 - Make path more robust so it also works with out-of-tree builds.

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 16 10:43:16 PST 2018


Author: adrian
Date: Fri Nov 16 10:43:16 2018
New Revision: 347071

URL: http://llvm.org/viewvc/llvm-project?rev=347071&view=rev
Log:
Make path more robust so it also works with out-of-tree builds.

Modified:
    lldb/trunk/lit/lit.cfg.py

Modified: lldb/trunk/lit/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/lit.cfg.py?rev=347071&r1=347070&r2=347071&view=diff
==============================================================================
--- lldb/trunk/lit/lit.cfg.py (original)
+++ lldb/trunk/lit/lit.cfg.py Fri Nov 16 10:43:16 2018
@@ -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)




More information about the lldb-commits mailing list