summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-09-27 18:06:33 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-09-27 18:06:33 +0200
commit28b8140a396888c88a1941e5af62eee701c73905 (patch)
treebcba7e431ed82db92965cf00a78da22ddcc5a13d /src/options.c
parentfinally moved from svn to git (diff)
added used compiler at version output
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index f2fc0b6..698cb8c 100644
--- a/src/options.c
+++ b/src/options.c
@@ -325,7 +325,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)