Bug 1241398 - Allow to pass the --verbose flag down to config.status from `mach build-backend`. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 21 Jan 2016 15:54:15 +0900
changeset 281002 61577ee979217944298cf2c62e42e9d6d9d7a1e4
parent 281001 ff92436240465c93e4635daeefbe201f05e8e425
child 281003 012e4a8649219b7972a878ff9b9983ef80437370
push id70653
push usermh@glandium.org
push dateThu, 21 Jan 2016 22:01:00 +0000
treeherdermozilla-inbound@38c6162cefb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1241398
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1241398 - Allow to pass the --verbose flag down to config.status from `mach build-backend`. r=gps
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -600,32 +600,36 @@ class Build(MachCommandBase):
     @Command('build-backend', category='build',
         description='Generate a backend used to build the tree.')
     @CommandArgument('-d', '--diff', action='store_true',
         help='Show a diff of changes.')
     # It would be nice to filter the choices below based on
     # conditions, but that is for another day.
     @CommandArgument('-b', '--backend', nargs='+', choices=sorted(backends),
         help='Which backend to build.')
-    def build_backend(self, backend, diff=False):
+    @CommandArgument('-v', '--verbose', action='store_true',
+        help='Verbose output.')
+    def build_backend(self, backend, diff=False, verbose=False):
         python = self.virtualenv_manager.python_path
         config_status = os.path.join(self.topobjdir, 'config.status')
 
         if not os.path.exists(config_status):
             print('config.status not found.  Please run |mach configure| '
                   'or |mach build| prior to building the %s build backend.'
                   % backend)
             return 1
 
         args = [python, config_status]
         if backend:
             args.append('--backend')
             args.extend(backend)
         if diff:
             args.append('--diff')
+        if verbose:
+            args.append('--verbose')
 
         return self._run_command_in_objdir(args=args, pass_thru=True,
             ensure_exit_code=False)
 
     def _run_mach_artifact_install(self):
         # We'd like to launch artifact using
         # self._mach_context.commands.dispatch.  However, artifact activates
         # the virtualenv, which plays badly with the rest of this code.