[Lldb-commits] [lldb] r324019 - Create a marker for Spotlight to never index $BUILD_DIR.

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 1 14:18:02 PST 2018


Author: adrian
Date: Thu Feb  1 14:18:02 2018
New Revision: 324019

URL: http://llvm.org/viewvc/llvm-project?rev=324019&view=rev
Log:
Create a marker for Spotlight to never index $BUILD_DIR.

LLDB queries Spotlight to locate .dSYM bundles based on the UUID
embedded in a binary, and because the UUID is a hash of filename and
.text section, there *will* be conflicts inside $BUILD_DIR.

This should fix the broken green dragon bots.

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/dotest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=324019&r1=324018&r2=324019&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Thu Feb  1 14:18:02 2018
@@ -1196,8 +1196,17 @@ def run_suite():
 
     # Set up the working directory.
     # Note that it's not dotest's job to clean this directory.
-    try: os.makedirs(configuration.test_build_dir)
-    except: pass
+    import lldbsuite.test.lldbutil as lldbutil
+    build_dir = configuration.test_build_dir
+    lldbutil.mkdir_p(build_dir)
+
+    # Create a marker for Spotlight to never index $BUILD_DIR.  LLDB
+    # queries Spotlight to locate .dSYM bundles based on the UUID
+    # embedded in a binary, and because the UUID is a hash of filename
+    # and .text section, there *will* be conflicts inside $BUILD_DIR.
+    if platform.system() == "Darwin":
+        with open(os.path.join(build_dir, '.metadata_never_index'), 'w+'):
+            pass
 
     target_platform = lldb.DBG.GetSelectedPlatform().GetTriple().split('-')[2]
 




More information about the lldb-commits mailing list