mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
skip compile::Std
and compile::Rustc
on forced_compiler
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
cdd8af2299
commit
028aaa12b6
@ -121,10 +121,18 @@ impl Step for ToolBuild {
|
||||
|
||||
match self.mode {
|
||||
Mode::ToolRustc => {
|
||||
builder.ensure(compile::Std::new(self.compiler, self.compiler.host));
|
||||
builder.ensure(compile::Rustc::new(self.compiler, target));
|
||||
// If compiler was forced, its artifacts should be prepared earlier.
|
||||
if !self.compiler.is_forced_compiler() {
|
||||
builder.ensure(compile::Std::new(self.compiler, self.compiler.host));
|
||||
builder.ensure(compile::Rustc::new(self.compiler, target));
|
||||
}
|
||||
}
|
||||
Mode::ToolStd => {
|
||||
// If compiler was forced, its artifacts should be prepared earlier.
|
||||
if !self.compiler.is_forced_compiler() {
|
||||
builder.ensure(compile::Std::new(self.compiler, target))
|
||||
}
|
||||
}
|
||||
Mode::ToolStd => builder.ensure(compile::Std::new(self.compiler, target)),
|
||||
Mode::ToolBootstrap => {} // uses downloaded stage0 compiler libs
|
||||
_ => panic!("unexpected Mode for tool build"),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user