aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorMatthew Rasmus <mattr@zzntd.com>2014-11-23 11:44:53 -0800
committerMatthew Rasmus <mattr@zzntd.com>2014-11-23 11:44:53 -0800
commitd300469bbdd24413b9a3d98547d59d1f48a68d89 (patch)
treea4dcbd68dce3dba59283d22e130813e42403738c /python/servo/build_commands.py
parentaf42f1afc1dd2bcad50690c694c52b6b4f2d121a (diff)
downloadservo-d300469bbdd24413b9a3d98547d59d1f48a68d89.tar.gz
servo-d300469bbdd24413b9a3d98547d59d1f48a68d89.zip
Adds --release flag to ./mach build-cef
Requested by kmc in IRC. ``` 11:36 < kmc> while you're mach-ing about, can you modify build-cef to accept --release like build does? ```
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 009c4b76c40..666c8945e1d 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -88,7 +88,10 @@ class MachCommands(CommandBase):
@CommandArgument('--verbose', '-v',
action='store_true',
help='Print verbose output')
- def build_cef(self, jobs=None, verbose=False):
+ @CommandArgument('--release', '-r',
+ action='store_true',
+ help='Build in release mode')
+ def build_cef(self, jobs=None, verbose=False, release=False):
self.ensure_bootstrapped()
ret = None
@@ -97,6 +100,8 @@ class MachCommands(CommandBase):
opts += ["-j", jobs]
if verbose:
opts += ["-v"]
+ if release:
+ opts += ["--release"]
build_start = time()
with cd(path.join("ports", "cef")):