mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
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? ```
This commit is contained in:
parent
af42f1afc1
commit
d300469bbd
1 changed files with 6 additions and 1 deletions
|
@ -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")):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue