aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-08-26 22:41:06 +0100
committergingerBill <bill@gingerbill.org>2020-08-26 22:41:06 +0100
commit999d1a022d52d0c60bea129faacfdab420cae649 (patch)
treeb33fc399795ce04f2e1762e3075de485c98c6031 /src
parent1f2f3cb315d7ffea69321712f6431b0230c98f62 (diff)
parent7309cfdbb203592d9f7da098e40a8d3acfeef592 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9e7f7b612..13d9e53bf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1684,7 +1684,17 @@ int main(int arg_count, char const **arg_ptr) {
return 1;
#endif
} else if (command == "version") {
- gb_printf("%.*s version %.*s\n", LIT(args[0]), LIT(ODIN_VERSION));
+ gb_printf("%.*s version %.*s", LIT(args[0]), LIT(ODIN_VERSION));
+
+ #ifdef NIGHTLY
+ gb_printf("-nightly");
+ #endif
+
+ #ifdef GIT_SHA
+ gb_printf("-%s", GIT_SHA);
+ #endif
+
+ gb_printf("\n");
return 0;
} else {
usage(args[0]);