Skip to content

Commit d869a4a

Browse files
authored
Merge pull request #546 from hermit-os/log-arch
feat: print target architecture, target OS, and rustc version on boot
2 parents bd74014 + 4f1a201 commit d869a4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ fn log_built_info() {
4343

4444
info!("Git version: {git_version}{dirty}{opt_level}");
4545
}
46+
let arch = built_info::TARGET.split_once('-').unwrap().0;
47+
info!("Architecture: {arch}");
48+
info!("Operating system: {}", built_info::CFG_OS);
4649
info!("Enabled features: {}", built_info::FEATURES_LOWERCASE_STR);
50+
info!("Built with {}", built_info::RUSTC_VERSION);
4751
info!("Built on {}", built_info::BUILT_TIME_UTC);
4852
}
4953

0 commit comments

Comments
 (0)