Make ./mach rustup install the rustc-dev component

This commit is contained in:
Simon Sapin 2019-11-12 13:57:46 +01:00
parent 9a518cf797
commit b7389a9637

View file

@ -206,7 +206,7 @@ class MachCommands(CommandBase):
filename = path.join(self.context.topdir, "rust-toolchain")
with open(filename, "w") as f:
f.write(toolchain + "\n")
return call(["rustup" + BIN_SUFFIX, "install", toolchain])
return call(["rustup" + BIN_SUFFIX, "component", "add", "rustc-dev"])
@Command('fetch',
description='Fetch Rust, Cargo and Cargo dependencies',