mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 860898 - Add a verbose flag to mach build options. r=gps
This commit is contained in:
parent
f312fce963
commit
b027618cb6
@ -54,7 +54,9 @@ class Build(MachCommandBase):
|
||||
@CommandArgument('-X', '--disable-extra-make-dependencies',
|
||||
default=False, action='store_true',
|
||||
help='Do not add extra make dependencies.')
|
||||
def build(self, what=None, disable_extra_make_dependencies=None, jobs=0):
|
||||
@CommandArgument('-v', '--verbose', action='store_true',
|
||||
help='Verbose output for what commands the build is running.')
|
||||
def build(self, what=None, disable_extra_make_dependencies=None, jobs=0, verbose=False):
|
||||
# This code is only meant to be temporary until the more robust tree
|
||||
# building code in bug 780329 lands.
|
||||
from mozbuild.compilation.warnings import WarningsCollector
|
||||
@ -128,14 +130,15 @@ class Build(MachCommandBase):
|
||||
for make_dir, make_target in target_pairs:
|
||||
status = self._run_make(directory=make_dir, target=make_target,
|
||||
line_handler=on_line, log=False, print_directory=False,
|
||||
ensure_exit_code=False, num_jobs=jobs)
|
||||
ensure_exit_code=False, num_jobs=jobs, silent=not verbose)
|
||||
|
||||
if status != 0:
|
||||
break
|
||||
else:
|
||||
status = self._run_make(srcdir=True, filename='client.mk',
|
||||
line_handler=on_line, log=False, print_directory=False,
|
||||
allow_parallel=False, ensure_exit_code=False, num_jobs=jobs)
|
||||
allow_parallel=False, ensure_exit_code=False, num_jobs=jobs,
|
||||
silent=not verbose)
|
||||
|
||||
self.log(logging.WARNING, 'warning_summary',
|
||||
{'count': len(warnings_collector.database)},
|
||||
|
Loading…
Reference in New Issue
Block a user