Bug 1224450 - Skip difficult directories in the CompileDB. r=gps draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 03 Feb 2016 16:28:12 +0900
changeset 330170 70e05b8185276acbb422a903f6f76cf342ad8900
parent 330169 235082272e8c924a4fdb57b2209417c9b92a7202
child 330171 d0a072f572e38a882631df4ee8ef657a4be4c14d
push id10697
push userbmo:mh+mozilla@glandium.org
push dateWed, 10 Feb 2016 21:59:03 +0000
reviewersgps
bugs1224450
milestone47.0a1
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)):