Add a mach rustc command

This commit is contained in:
Matt Brubeck 2014-09-14 11:46:12 -07:00
parent a2ab6f9799
commit 2df61655cc

View file

@ -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())