bootstrap: make comment more clear

Reading that at first made me think the code block ensures that the said artefacts are created
This commit is contained in:
Tshepang Mbambo 2025-07-01 08:56:53 +02:00 committed by GitHub
parent 6988a8fea7
commit 09e0dcae1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,14 +120,14 @@ impl Step for ToolBuild {
match self.mode {
Mode::ToolRustc => {
// If compiler was forced, its artifacts should be prepared earlier.
// If compiler was forced, its artifacts should have been prepared earlier.
if !self.compiler.is_forced_compiler() {
builder.std(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 compiler was forced, its artifacts should have been prepared earlier.
if !self.compiler.is_forced_compiler() {
builder.std(self.compiler, target)
}