diff options
| author | Goldstein <root@goldstein.rs> | 2023-09-06 10:14:09 +0300 |
|---|---|---|
| committer | Goldstein <root@goldstein.rs> | 2023-09-06 10:14:09 +0300 |
| commit | e0593f30fbaf8fdc05784ee90833596b2d659d9c (patch) | |
| tree | d85ec3bd7da0491b6a3cfcdb1e3d713e91b12f56 | |
| parent | 51a9df8c70d69a253f9e563e3e4370297ad1746a (diff) | |
| download | rust-e0593f30fbaf8fdc05784ee90833596b2d659d9c.tar.gz rust-e0593f30fbaf8fdc05784ee90833596b2d659d9c.zip | |
fix log formatting in bootstrap
| -rw-r--r-- | src/bootstrap/lib.rs | 2 | ||||
| -rw-r--r-- | src/bootstrap/llvm.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 4396bbc51a3..671d25484d0 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -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}"); } diff --git a/src/bootstrap/llvm.rs b/src/bootstrap/llvm.rs index 07502e0e9dd..aefed501513 100644 --- a/src/bootstrap/llvm.rs +++ b/src/bootstrap/llvm.rs @@ -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 |
