Bug 1224450 - Skip difficult directories in the CompileDB. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 03 Feb 2016 16:28:12 +0900
changeset 284015 bc6f6b34333ecff08594423be8a6d8055551a8f1
parent 284014 5160753dedb234c4fe3925913c86999ffa905636
child 284016 c7ff3274d147b9fdbc9753609b5f3f76f58450a7
push id71795
push usermh@glandium.org
push dateThu, 11 Feb 2016 22:16:58 +0000
treeherdermozilla-inbound@241e53cd1012 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1224450
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1224450 - Skip difficult directories in the CompileDB. r=gps There are a few difficult directories to handle, with limited usefulness compared to having the CompileDB properly filled for everything else in a timely manner, so skip them for now.
python/mozbuild/mozbuild/compilation/database.py
--- a/python/mozbuild/mozbuild/compilation/database.py
+++ b/python/mozbuild/mozbuild/compilation/database.py
@@ -36,16 +36,26 @@ class CompileDBBackend(CommonBackend):
         self._flags = {}
 
         log_manager = LoggingManager()
         self._cmd = MozbuildObject(self.environment.topsrcdir, ConfigSettings(),
                                    log_manager, self.environment.topobjdir)
 
 
     def consume_object(self, obj):
+        # Those are difficult directories, that will be handled later.
+        if obj.relativedir in (
+                'build/unix/elfhack',
+                'build/unix/elfhack/inject',
+                'build/clang-plugin',
+                'build/clang-plugin/tests',
+                'security/sandbox/win/wow_helper',
+                'toolkit/crashreporter/google-breakpad/src/common'):
+            return True
+
         consumed = CommonBackend.consume_object(self, obj)
 
         if consumed:
             return True
 
         # We ignore host compilations for now, the code doesn't handle them
         # properly.
         if isinstance(obj, (Sources, GeneratedSources)):