diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-09-26 15:32:01 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-09-29 17:41:45 +0100 |
commit | 516b608a2f5d1f56f59c0b04d1a88e67883cea36 (patch) | |
tree | 428c7585f991eb28e0c965c111a6a1acf941b1db /python/servo | |
parent | 3996a15adb29a8fe9ef7c42a9933474736d5e702 (diff) | |
download | servo-516b608a2f5d1f56f59c0b04d1a88e67883cea36.tar.gz servo-516b608a2f5d1f56f59c0b04d1a88e67883cea36.zip |
Add a 'mach rust-root' command.
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/devenv_commands.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index f186427ba4a..199471a6023 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -33,3 +33,9 @@ class MachCommands(CommandBase): help="Command-line arguments to be passed through to rustc") def rustc(self, params): return subprocess.call(["rustc"] + params, env=self.build_env()) + + @Command('rust-root', + description='Print the path to the root of the Rust compiler', + category='devenv') + def rust_root(self): + print(self.config["tools"]["rust-root"]) |