Skip to content

Commit

Permalink
Add -v or --verbose to mach build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Leifeld committed Sep 11, 2014
1 parent f365334 commit f2a692e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/servo/build_commands.py
Expand Up @@ -33,7 +33,10 @@ class MachCommands(CommandBase):
@CommandArgument('--jobs', '-j',
default=None,
help='Number of jobs to run in parallel')
def build(self, target, release=False, jobs=None):
@CommandArgument('--verbose', '-v',
action='store_true',
help='Print verbose output')
def build(self, target, release=False, jobs=None, verbose=False):
self.ensure_bootstrapped()

opts = []
Expand All @@ -43,6 +46,8 @@ def build(self, target, release=False, jobs=None):
opts += ["--target", target]
if jobs is not None:
opts += ["-j", jobs]
if verbose:
opts += ["-v"]

build_start = time()
subprocess.check_call(["cargo", "build"] + opts, env=self.build_env())
Expand Down

0 comments on commit f2a692e

Please sign in to comment.