Rollup merge of #85326 - infinity0:fix-cross-compile-tools, r=Mark-Simulacrum

bootstrap: ensure host std when cross-compiling tools, fixes #85320
This commit is contained in:
Guillaume Gomez 2021-05-20 17:56:51 +02:00 committed by GitHub
commit ddc376c03d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,10 @@ impl Step for ToolBuild {
let is_optional_tool = self.is_optional_tool;
match self.mode {
Mode::ToolRustc => builder.ensure(compile::Rustc { compiler, target }),
Mode::ToolRustc => {
builder.ensure(compile::Std { compiler, target: compiler.host });
builder.ensure(compile::Rustc { compiler, target });
}
Mode::ToolStd => builder.ensure(compile::Std { compiler, target }),
Mode::ToolBootstrap => {} // uses downloaded stage0 compiler libs
_ => panic!("unexpected Mode for tool build"),