aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-09-14 11:46:12 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-09-14 11:46:18 -0700
commit2df61655cc99678e7e7db9d0cf1883c702fdc300 (patch)
tree24d93e3a1570c174108d283dafc517dfa5d8c6da /python/servo
parenta2ab6f97991aa877a19ed24976694d451ac450cf (diff)
downloadservo-2df61655cc99678e7e7db9d0cf1883c702fdc300.tar.gz
servo-2df61655cc99678e7e7db9d0cf1883c702fdc300.zip
Add a `mach rustc` command
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/devenv_commands.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py
index d076330ee4e..b44894395e6 100644
--- a/python/servo/devenv_commands.py
+++ b/python/servo/devenv_commands.py
@@ -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())