summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-09-26 00:45:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-09-26 00:45:07 +0200
commitc5660c7ecdb92c23cb5397a6c0b4220010eb14be (patch)
treede1c7bc2b0bd532346ee6f517e37df6f78d4b60f /src
parentnow using GOptions for command line parsing (diff)
include compiler in version print
Diffstat (limited to 'src')
-rw-r--r--src/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 6f7a0fc..bcc1312 100644
--- a/src/options.c
+++ b/src/options.c
@@ -279,7 +279,13 @@ void options_clear(options_t* opt)
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
const gchar *nano_str;
guint major, minor, micro, nano;
gst_version(&major, &minor, &micro, &nano);