Index: tools/mb/mb.py |
diff --git a/tools/mb/mb.py b/tools/mb/mb.py |
index 5d6fe1b7e075184d96532d8343e56d51fe8e4e77..0b5775e9f2069fb887144b1deda0ef700a8763d3 100755 |
--- a/tools/mb/mb.py |
+++ b/tools/mb/mb.py |
@@ -430,7 +430,7 @@ class MetaBuildWrapper(object): |
cmd = self.GNCmd('refs', self.args.path[0]) + [ |
'//' + f, '--type=executable', '--all', '--as=output'] |
ret, out, _ = self.Run(cmd) |
- if ret: |
+ if ret and not 'The input matches no targets' in out: |
self.WriteFailureAndRaise('gn refs returned %d: %s' % (ret, out), |
output_path) |