summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-05-10 22:13:11 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2015-05-10 22:13:11 (GMT)
commiteb74ea88c79467a117d6e4ae672ec5fe9048c2f7 (patch)
tree25dbd85df62ee250221a4716c12973d458ee31a1
parent62f2b185868ca2081db05214f41d2f228757e3fd (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 c9083e8..c25a748 100644
--- a/src/options.c
+++ b/src/options.c
@@ -352,7 +352,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)