aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-01-02 14:20:20 +0100
committerSimon Sapin <simon.sapin@exyr.org>2020-01-02 15:30:33 +0100
commite56e49e98fe4f0056c4f7915d9de6e998c056624 (patch)
treeb30e2c1ad01bebdf237c338605c6f8c7c1d297e4 /python/servo/build_commands.py
parentcef92a2050fae29d7ae810da43d387ee57b00273 (diff)
downloadservo-e56e49e98fe4f0056c4f7915d9de6e998c056624.tar.gz
servo-e56e49e98fe4f0056c4f7915d9de6e998c056624.zip
mach: run `rustup target add` in `ensure_bootstrapped`
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index b9d2a90ad79..2aa70862fd6 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -30,7 +30,7 @@ from mach.decorators import (
from mach.registrar import Registrar
from mach_bootstrap import _get_exec_path
-from servo.command_base import CommandBase, cd, call, check_call, BIN_SUFFIX, append_to_path_env, gstreamer_root
+from servo.command_base import CommandBase, cd, call, check_call, append_to_path_env, gstreamer_root
from servo.util import host_triple
@@ -237,14 +237,6 @@ class MachCommands(CommandBase):
if very_verbose:
opts += ["-vv"]
- if target:
- if self.config["tools"]["use-rustup"] and not uwp:
- # 'rustup target add' fails if the toolchain is not installed at all.
- self.call_rustup_run(["rustc", "--version"])
-
- check_call(["rustup" + BIN_SUFFIX, "target", "add",
- "--toolchain", self.rust_toolchain(), target])
-
env = self.build_env(target=target, is_build=True, uwp=uwp, features=features)
self.ensure_bootstrapped(target=target)
self.ensure_clobbered()