summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-09-27 16:26:36 +0000
committerChristian Pointner <equinox@anytun.org>2014-09-27 16:26:36 +0000
commit0c3b3ed1ce8984cca0f069674ca3c75d861ac066 (patch)
tree93f359325761d3ce3ccfa607c746aeb7648f1326 /src
parentupdated changelog for new release (diff)
version output now includes compiler version
Diffstat (limited to 'src')
-rw-r--r--src/options.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/options.cpp b/src/options.cpp
index 284e9e8..038e7b7 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -559,7 +559,16 @@ void Options::printVersion()
std::cout << "anytun";
#endif
std::cout << VERSION_STRING_0 << std::endl;
+
+#if defined(__clang__)
+ std::cout << VERSION_STRING_1 << ", using CLANG " << __clang_version__ << std::endl;
+#elif defined(__GNUC__)
+ std::cout << VERSION_STRING_1 << ", using GCC " << __GNUC__ << '.' << __GNUC_MINOR__
+ << '.' << __GNUC_PATCHLEVEL__ << std::endl;
+#else
std::cout << VERSION_STRING_1 << std::endl;
+#endif
+
}
void Options::printUsage()