Allow running rust-installer (and other tools) multiple times with the same arguments

This commit is contained in:
Jakub Beránek 2025-08-23 14:18:30 +02:00
parent 600d9bf149
commit 412734de29
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

@ -1581,6 +1581,10 @@ impl Builder<'_> {
/// `host`.
pub fn tool_cmd(&self, tool: Tool) -> BootstrapCommand {
let mut cmd = command(self.tool_exe(tool));
// Do not cache tool invocations, as they can have side effects
cmd.do_not_cache();
let compiler = self.compiler(0, self.config.host_target);
let host = &compiler.host;
// Prepares the `cmd` provided to be able to run the `compiler` provided.