about summary refs log tree commit diff stats
path: root/src/build_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_info.c')
-rwxr-xr-xsrc/build_info.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/build_info.c b/src/build_info.c
new file mode 100755
index 00000000..02c19b4f
--- /dev/null
+++ b/src/build_info.c
@@ -0,0 +1,27 @@
+#include <stdio.h>
+#include "debug.h"
+#include "box64version.h"
+#ifdef NOGIT
+#define GITREV "nogit"
+#else
+#include "git_head.h"
+#endif
+
+void PrintBox64Version()
+{
+    printf("Box64%s%s v%d.%d.%d %s built on %s %s\n", 
+    #ifdef HAVE_TRACE
+        " with trace",
+    #else
+        "",
+    #endif
+    #ifdef DYNAREC
+        " with Dynarec",
+    #else
+        "",
+    #endif
+        BOX64_MAJOR, BOX64_MINOR, BOX64_REVISION,
+        GITREV,
+        __DATE__, __TIME__);
+}
+