mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
auto merge of #4077 : mttr/servo/mach_build_cef_release, r=kmcallister
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:
commit
a1a268ce1d
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