mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
Mach: rename default_toolchain to rust_toolchain
This commit is contained in:
parent
7281336116
commit
cef92a2050
4 changed files with 10 additions and 15 deletions
|
@ -241,9 +241,8 @@ class PostBuildCommands(CommandBase):
|
|||
@CommandBase.build_like_command_arguments
|
||||
def doc(self, params, features, target=None, android=False, magicleap=False,
|
||||
media_stack=None, **kwargs):
|
||||
env = os.environ.copy()
|
||||
env["RUSTUP_TOOLCHAIN"] = self.toolchain()
|
||||
rustc_path = check_output(["rustup" + BIN_SUFFIX, "which", "rustc"], env=env)
|
||||
rustc_path = check_output(
|
||||
["rustup" + BIN_SUFFIX, "which", "--toolchain", self.rust_toolchain(), "rustc"])
|
||||
assert path.basename(path.dirname(rustc_path)) == "bin"
|
||||
toolchain_path = path.dirname(path.dirname(rustc_path))
|
||||
rust_docs = path.join(toolchain_path, "share", "doc", "rust", "html")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue