aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authortigercosmos <phy.tiger@gmail.com>2017-12-23 14:47:00 +0800
committertigercosmos <phy.tiger@gmail.com>2017-12-23 14:47:00 +0800
commit49a983a09e5b61f540f9cf2fbd8bb4a85b4b229d (patch)
treecc59bd225a97f586cb2cdb9365366548af78e33d /python/servo/build_commands.py
parentc2cacb69f3d69d2db0db23f7f46eaabf555cb2be (diff)
downloadservo-49a983a09e5b61f540f9cf2fbd8bb4a85b4b229d.tar.gz
servo-49a983a09e5b61f540f9cf2fbd8bb4a85b4b229d.zip
pass -vv through mach to cargo
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index ea6ddca8725..28451aac2cc 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -167,6 +167,9 @@ class MachCommands(CommandBase):
@CommandArgument('--verbose', '-v',
action='store_true',
help='Print verbose output')
+ @CommandArgument('--very-verbose', '-vv',
+ action='store_true',
+ help='Print very verbose output')
@CommandArgument('params', nargs='...',
help="Command-line arguments to be passed through to Cargo")
@CommandArgument('--with-debug-assertions',
@@ -174,8 +177,8 @@ class MachCommands(CommandBase):
action='store_true',
help='Enable debug assertions in release')
def build(self, target=None, release=False, dev=False, jobs=None,
- features=None, android=None, verbose=False, debug_mozjs=False, params=None,
- with_debug_assertions=False):
+ features=None, android=None, verbose=False, very_verbose=False,
+ debug_mozjs=False, params=None, with_debug_assertions=False):
opts = params or []
opts += ["--manifest-path", self.servo_manifest()]
@@ -223,6 +226,8 @@ class MachCommands(CommandBase):
opts += ["-j", jobs]
if verbose:
opts += ["-v"]
+ if very_verbose:
+ opts += ["-vv"]
if android:
target = self.config["android"]["target"]