Verbose rustup.

This commit is contained in:
Guillaume Endignoux
2020-04-28 14:02:24 +02:00
parent ec2c3fb201
commit 463a289dd0

View File

@@ -313,9 +313,17 @@ class OpenSKInstaller:
target_toolchain[1] in current_version): target_toolchain[1] in current_version):
info("Updating rust toolchain to {}".format("-".join(target_toolchain))) info("Updating rust toolchain to {}".format("-".join(target_toolchain)))
# Need to update # Need to update
self.checked_command(["rustup", "install", target_toolchain_fullstring]) rustup_install = ["rustup"]
self.checked_command( if self.args.verbose_build:
["rustup", "target", "add", SUPPORTED_BOARDS[self.args.board].arch]) rustup_install.extend(["--verbose"])
rustup_install.extend(["install", target_toolchain_fullstring])
self.checked_command(rustup_install)
rustup_target = ["rustup"]
if self.args.verbose_build:
rustup_target.extend(["--verbose"])
rustup_target.extend(["target", "add", SUPPORTED_BOARDS[self.args.board].arch])
self.checked_command(rustup_target)
info("Rust toolchain up-to-date") info("Rust toolchain up-to-date")
def build_tockos(self): def build_tockos(self):