summaryrefslogtreecommitdiff
path: root/mesonbuild/mcompile.py
diff options
context:
space:
mode:
authorIgor Raits <i.gnatenko.brain@gmail.com>2020-06-18 16:45:27 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2020-06-21 23:49:39 +0300
commitd6c6b933c464d2689751da4f78cdd6463a4bc041 (patch)
tree7eefd48fdb18f1ff7ee7a685c1511aca8ccb3366 /mesonbuild/mcompile.py
parente353b2e8d48c8ffce579342fac9ccfc62127bec8 (diff)
downloadmeson-d6c6b933c464d2689751da4f78cdd6463a4bc041.tar.gz
mcompile: Add --verbose mode
Closes: https://github.com/mesonbuild/meson/issues/7352 Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'mesonbuild/mcompile.py')
-rw-r--r--mesonbuild/mcompile.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py
index e4576239b..0bcb56ec3 100644
--- a/mesonbuild/mcompile.py
+++ b/mesonbuild/mcompile.py
@@ -54,6 +54,8 @@ def get_parsed_args_ninja(options: 'argparse.Namespace', builddir: Path):
cmd.extend(['-j', str(options.jobs)])
if options.load_average > 0:
cmd.extend(['-l', str(options.load_average)])
+ if options.verbose:
+ cmd.append('-v')
if options.clean:
cmd.append('clean')
@@ -74,8 +76,10 @@ def get_parsed_args_vs(options: 'argparse.Namespace', builddir: Path):
if options.load_average:
mlog.warning('Msbuild does not have a load-average switch, ignoring.')
+ if not options.verbose:
+ cmd.append('/v:minimal')
if options.clean:
- cmd.extend(['/t:Clean'])
+ cmd.append('/t:Clean')
return cmd
@@ -108,6 +112,11 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None:
default='.',
help='The directory containing build files to be built.'
)
+ parser.add_argument(
+ '--verbose',
+ action='store_true',
+ help='Show more verbose output.'
+ )
def run(options: 'argparse.Namespace') -> int: