mirror of
https://github.com/servo/servo.git
synced 2025-06-23 00:24:35 +01:00
Add a 'mach rust-root' command.
This commit is contained in:
parent
3996a15adb
commit
516b608a2f
2 changed files with 12 additions and 3 deletions
|
@ -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"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue