Skip to content

Commit 903e369

Browse files
committed
Fix boostrap using host exe suffix for cargo
1 parent f98bd7e commit 903e369

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bootstrap/tool.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ impl Step for ToolBuild {
217217
if tool == "tidy" {
218218
tool = "rust-tidy";
219219
}
220-
let cargo_out =
221-
builder.cargo_out(compiler, self.mode, target).join(exe(tool, compiler.host));
222-
let bin = builder.tools_dir(compiler).join(exe(tool, compiler.host));
220+
let cargo_out = builder.cargo_out(compiler, self.mode, target).join(exe(tool, target));
221+
let bin = builder.tools_dir(compiler).join(exe(tool, target));
223222
builder.copy(&cargo_out, &bin);
224223
Some(bin)
225224
}

0 commit comments

Comments
 (0)