Parse odin version date out of HEAD commit if available

This commit is contained in:
Jeroen van Rijn
2025-05-13 18:09:30 +02:00
parent 0a12c464ab
commit ed56a7ca10
4 changed files with 33 additions and 29 deletions

View File

@@ -667,8 +667,14 @@ gb_internal void print_bug_report_help() {
gb_printf("-nightly");
#endif
String version = {};
#ifdef GIT_SHA
gb_printf(":%s", GIT_SHA);
version.text = cast(u8 *)GIT_SHA;
version.len = gb_strlen(GIT_SHA);
if (version != "") {
gb_printf(":%.*s", LIT(version));
}
#endif
gb_printf("\n");