Skip to content

Commit 412734d

Browse files
committed
Allow running rust-installer (and other tools) multiple times with the same arguments
1 parent 600d9bf commit 412734d

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/tool.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,10 @@ impl Builder<'_> {
15811581
/// `host`.
15821582
pub fn tool_cmd(&self, tool: Tool) -> BootstrapCommand {
15831583
let mut cmd = command(self.tool_exe(tool));
1584+
1585+
// Do not cache tool invocations, as they can have side effects
1586+
cmd.do_not_cache();
1587+
15841588
let compiler = self.compiler(0, self.config.host_target);
15851589
let host = &compiler.host;
15861590
// Prepares the `cmd` provided to be able to run the `compiler` provided.

0 commit comments

Comments
 (0)