aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_build_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-01-02 13:56:16 +0100
committerSimon Sapin <simon.sapin@exyr.org>2020-01-02 14:20:18 +0100
commitcef92a2050fae29d7ae810da43d387ee57b00273 (patch)
tree8bf9a020b61976f2451094d6e1352bb5460c95c6 /python/servo/post_build_commands.py
parent728133611656f37480b96103dcc1d025f7d12ba3 (diff)
downloadservo-cef92a2050fae29d7ae810da43d387ee57b00273.tar.gz
servo-cef92a2050fae29d7ae810da43d387ee57b00273.zip
Mach: rename default_toolchain to rust_toolchain
Diffstat (limited to 'python/servo/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index a6ab4de647c..18b43a1afe0 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -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")