From 8156c921d3ad7e023ea55e7bed2f5c9f60ce988d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 24 Aug 2021 22:39:49 +0200 Subject: [PATCH] Show precise compiler version when running the unit tests Although the compiler is already shown as part of the build signature, it doesn't always show the exact compiler version used, which can be useful as well, so add it here. --- tests/test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test.cpp b/tests/test.cpp index 0ee15c3b4b..c81e468022 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -541,6 +541,22 @@ bool TestApp::OnInit() cout << "Test program for wxWidgets non-GUI features\n" #endif << "build: " << WX_BUILD_OPTIONS_SIGNATURE << "\n" + << "compiled using " +#if defined(__clang__) + << "clang " << __clang_major__ << "." << __clang_minor__ << "." << __clang_patchlevel__ +#elif defined(__INTEL_COMPILER) + << "icc " << __INTEL_COMPILER +#elif defined(__GNUG__) + << "gcc " << __GNUC__ << "." << __GNUC_MINOR__ +#elif defined(_MSC_VER) + << "msvc " << _MSC_VER + #if defined(_MSC_FULL_VER) + << " (full: " << _MSC_FULL_VER << ")" + #endif +#else + << "unidentified compiler" +#endif + << "\n" << "running under " << wxGetOsDescription() << " as " << wxGetUserId() << ", locale is " << setlocale(LC_ALL, NULL)