build: generate a version number, show in log on startup

This commit is contained in:
Mitchell Hashimoto
2023-03-04 20:34:15 -08:00
parent 5906d87642
commit 0907da4eba
4 changed files with 87 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ pub const GlobalState = struct {
pub fn init(self: *GlobalState) void {
// Output some debug information right away
std.log.info("ghostty version={s}", .{build_config.version_string});
std.log.info("runtime={}", .{build_config.app_runtime});
std.log.info("font_backend={}", .{build_config.font_backend});
std.log.info("dependency harfbuzz={s}", .{harfbuzz.versionString()});