Add MSVC support to MachineInfo

This commit is contained in:
Peter Keresztes Schmidt
2021-09-21 15:04:04 +02:00
committed by Laurent Trinques
parent b69c7b1027
commit a8d42b0f9a
2 changed files with 5 additions and 5 deletions

View File

@@ -82,12 +82,14 @@ class MachineInfo
struct Built
{
QString version=
#ifdef __GNUC__
#ifdef __APPLE_CC__
#ifdef __GNUC__
#ifdef __APPLE_CC__
"CLANG " + QString(__clang_version__);
#else
#else
"GCC " + QString(__VERSION__);
#endif
#elif defined(Q_CC_MSVC)
"MSVC " + QString(QT_STRINGIFY(_MSC_FULL_VER));
#endif
QString QT=QString(QT_VERSION_STR);
QString date=QString(__DATE__);