| Index: tools/mb/mb.py
|
| diff --git a/tools/mb/mb.py b/tools/mb/mb.py
|
| index b4f7e770dbbc65154bc3f5095fe7b5151000625c..a55542d844e9d61b29980b12c2b9b395ad65f83f 100755
|
| --- a/tools/mb/mb.py
|
| +++ b/tools/mb/mb.py
|
| @@ -354,7 +354,7 @@ class MetaBuildWrapper(object):
|
| def RunGNGen(self, vals):
|
| path = self.args.path[0]
|
|
|
| - cmd = self.GNCmd('gen', path, vals['gn_args'])
|
| + cmd = self.GNCmd('gen', path, vals['gn_args'], extra_args=['--check'])
|
|
|
| swarming_targets = []
|
| if self.args.swarming_targets_file:
|
| @@ -438,7 +438,7 @@ class MetaBuildWrapper(object):
|
|
|
| return ret
|
|
|
| - def GNCmd(self, subcommand, path, gn_args=''):
|
| + def GNCmd(self, subcommand, path, gn_args='', extra_args=None):
|
| if self.platform == 'linux2':
|
| gn_path = os.path.join(self.chromium_src_dir, 'buildtools', 'linux64',
|
| 'gn')
|
| @@ -453,6 +453,8 @@ class MetaBuildWrapper(object):
|
| gn_args = gn_args.replace("$(goma_dir)", self.args.goma_dir)
|
| if gn_args:
|
| cmd.append('--args=%s' % gn_args)
|
| + if extra_args:
|
| + cmd.extend(extra_args)
|
| return cmd
|
|
|
| def RunGYPGen(self, vals):
|
|
|