Skip to content

Commit

Permalink
Fix boostrap using host exe suffix for cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
jam1garner committed May 22, 2021
1 parent f98bd7e commit 903e369
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bootstrap/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,8 @@ impl Step for ToolBuild {
if tool == "tidy" {
tool = "rust-tidy";
}
let cargo_out =
builder.cargo_out(compiler, self.mode, target).join(exe(tool, compiler.host));
let bin = builder.tools_dir(compiler).join(exe(tool, compiler.host));
let cargo_out = builder.cargo_out(compiler, self.mode, target).join(exe(tool, target));
let bin = builder.tools_dir(compiler).join(exe(tool, target));
builder.copy(&cargo_out, &bin);
Some(bin)
}
Expand Down

0 comments on commit 903e369

Please sign in to comment.