aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/devenv_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r--python/servo/devenv_commands.py6
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"])