Index: tools/mb/mb.py |
diff --git a/tools/mb/mb.py b/tools/mb/mb.py |
index 5d7ffe0206d1e2fd50e6a652d423315d6f97c36c..5d6fe1b7e075184d96532d8343e56d51fe8e4e77 100755 |
--- a/tools/mb/mb.py |
+++ b/tools/mb/mb.py |
@@ -416,6 +416,14 @@ class MetaBuildWrapper(object): |
self.WriteJSON({'status': 'Found dependency (all)'}, output_path) |
return 0 |
+ # TODO: Because of the --type=executable filter below, we don't detect |
+ # when files will cause 'all' or 'gn_all' or similar targets to be |
+ # dirty. We need to figure out how to handle that properly, but for |
+ # now we can just bail out early. |
+ if 'gn_all' in inp['targets'] or 'all' in inp['targets']: |
+ self.WriteJSON({'status': 'Found dependency (all)'}, output_path) |
+ return 0 |
+ |
all_needed_targets = set() |
ret = 0 |
for f in inp['files']: |