Rollup merge of #115598 - GoldsteinE:fix-bootstrap-formatting, r=onur-ozkan

Fix log formatting in bootstrap

`format!()` was missing, so log was just showing `{target}` verbatim.

(I also applied a small clippy suggestion in `builder.info()`)
This commit is contained in:
Matthias Krüger 2023-09-06 19:31:51 +02:00 committed by GitHub
commit 23537ce47e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1019,7 +1019,7 @@ impl Build {
fn info(&self, msg: &str) {
match self.config.dry_run {
DryRun::SelfCheck => return,
DryRun::SelfCheck => (),
DryRun::Disabled | DryRun::UserSelected => {
println!("{msg}");
}

View File

@ -598,9 +598,9 @@ fn configure_cmake(
} else if target.contains("linux") {
cfg.define("CMAKE_SYSTEM_NAME", "Linux");
} else {
builder.info(
builder.info(&format!(
"could not determine CMAKE_SYSTEM_NAME from the target `{target}`, build may fail",
);
));
}
// When cross-compiling we should also set CMAKE_SYSTEM_VERSION, but in