summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anylike.org>2015-05-10 22:07:44 +0000
committerChristian Pointner <equinox@anylike.org>2015-05-10 22:07:44 +0000
commitbdc24f2c78070667cd89cf19798d26ebdf3f1e68 (patch)
treed2b385035dab316587f50909164addd2eba30cdd
parentprefer newer versions of lua (diff)
added compiler to version output
-rw-r--r--src/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 59c0d48..181ef48 100644
--- a/src/options.c
+++ b/src/options.c
@@ -319,7 +319,13 @@ void options_print_usage()
void options_print_version()
{
printf("%s\n", VERSION_STRING_0);
+#if defined(__clang__)
+ printf("%s, using CLANG %s\n", VERSION_STRING_1, __clang_version__);
+#elif defined(__GNUC__)
+ printf("%s, using GCC %d.%d.%d\n", VERSION_STRING_1, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
+#else
printf("%s\n", VERSION_STRING_1);
+#endif
}
void options_print(options_t* opt)