Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: tools/mb/mb.py

Issue 2027823002: Update mb.py to support gn directories with no args.gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/mb/mb.py
diff --git a/tools/mb/mb.py b/tools/mb/mb.py
index 2c16266c641b09fcb0b12c41863af082a377914f..2de1d9b6f6a23c7f65c6d98a9c49f94a3dc3daeb 100755
--- a/tools/mb/mb.py
+++ b/tools/mb/mb.py
@@ -528,9 +528,11 @@ class MetaBuildWrapper(object):
if not self.Exists(mb_type_path):
gn_args_path = self.PathJoin(self.ToAbsPath(build_dir), 'args.gn')
if not self.Exists(gn_args_path):
- self.Print('Must either specify a path to an existing GN build dir '
- 'or pass in a -m/-b pair or a -c flag to specify the '
- 'configuration')
+ self.Print('Couldn\'t find %s. Must either specify a path to an '
+ 'existing GN build dir or pass in a -m/-b pair or a -c flag '
+ 'to specify the configuration. If %s is a GN build dir then '
+ 'you can use gn args %s to generate args.gn' %
+ (gn_args_path, build_dir, build_dir))
Dirk Pranke 2016/05/31 20:39:03 Ah, good catch. However, the MB code is actually
brucedawson 2016/05/31 20:44:03 Making "it just work" would be better. Is checking
Dirk Pranke 2016/05/31 20:48:23 It's a little bit more complicated. If we think th
return {}
else:
mb_type = 'gn'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698