]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
In order to avoid release version strings in non-git builds, by default --version...
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index 065867775352388a8e2d617480a1331714f7929e..d14acf0b828024c7c2af0a1902d69d5d36fae0f7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -51,6 +51,11 @@ static void version() {
         __DATE__,
         __TIME__
     );
+#ifdef GMQCC_GITINFO
+    con_out("git build: %s\n", GMQCC_GITINFO);
+#elif defined(GMQCC_VERION_TYPE_DEVEL)
+    con_out("development build\n");
+#endif
 }
 
 static int usage() {