mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Have 'mach build' pass arbitrary arguments to Cargo.
Duplicating all of Cargo’s argument parsing in mach is silly.
This commit is contained in:
parent
e2b75670bd
commit
32c721e640
1 changed files with 4 additions and 2 deletions
|
@ -38,14 +38,16 @@ class MachCommands(CommandBase):
|
|||
@CommandArgument('--verbose', '-v',
|
||||
action='store_true',
|
||||
help='Print verbose output')
|
||||
@CommandArgument('params', nargs='...',
|
||||
help="Command-line arguments to be passed through to Cargo")
|
||||
def build(self, target=None, release=False, jobs=None, android=None,
|
||||
verbose=False, debug_mozjs=False):
|
||||
verbose=False, debug_mozjs=False, params=None):
|
||||
self.ensure_bootstrapped()
|
||||
|
||||
if android is None:
|
||||
android = self.config["build"]["android"]
|
||||
|
||||
opts = []
|
||||
opts = params or []
|
||||
features = []
|
||||
|
||||
if release:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue