diff options
author | Christian Pointner <equinox@anytun.org> | 2014-09-27 16:26:36 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-09-27 16:26:36 +0000 |
commit | 0c3b3ed1ce8984cca0f069674ca3c75d861ac066 (patch) | |
tree | 93f359325761d3ce3ccfa607c746aeb7648f1326 /src | |
parent | updated changelog for new release (diff) |
version output now includes compiler version
Diffstat (limited to 'src')
-rw-r--r-- | src/options.cpp | 9 |
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() |