diff options
author | Jack Moffitt <jack@metajack.im> | 2014-09-14 13:38:30 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2014-09-14 13:38:30 -0600 |
commit | 203144e2075117159e8c872b1a468c88c829def3 (patch) | |
tree | 1e6f0756ae497697415071821ef80204d87fe7d9 | |
parent | fe31805a04854190645cc9e685963c7af9c29b07 (diff) | |
parent | 2df61655cc99678e7e7db9d0cf1883c702fdc300 (diff) | |
download | servo-203144e2075117159e8c872b1a468c88c829def3.tar.gz servo-203144e2075117159e8c872b1a468c88c829def3.zip |
Merge pull request #3334 from mbrubeck/mach-rustc
Add a `mach rustc` command
-rw-r--r-- | python/servo/devenv_commands.py | 9 |
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()) |