mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add a mach rustc
command
This commit is contained in:
parent
a2ab6f9799
commit
2df61655cc
1 changed files with 9 additions and 0 deletions
|
@ -30,3 +30,12 @@ class MachCommands(CommandBase):
|
|||
def run(self, params):
|
||||
return subprocess.call(["cargo"] + params,
|
||||
env=self.build_env())
|
||||
|
||||
@Command('rustc',
|
||||
description='Run the Rust compiler',
|
||||
category='devenv',
|
||||
allow_all_args=True)
|
||||
@CommandArgument('params', default=None, nargs='...',
|
||||
help="Command-line arguments to be passed through to rustc")
|
||||
def run(self, params):
|
||||
return subprocess.call(["rustc"] + params, env=self.build_env())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue