more accurate compiler info for OS X
This commit is contained in:
parent
fb9e6074d8
commit
951f3d05c0
1 changed files with 4 additions and 0 deletions
4
config.h
4
config.h
|
@ -127,7 +127,11 @@
|
||||||
|
|
||||||
#ifndef GTA5SYNC_COMPILER
|
#ifndef GTA5SYNC_COMPILER
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
#define GTA5SYNC_COMPILER QString("Clang %1.%2.%3").arg(QString::number(__clang_major__), QString::number(__clang_minor__), QString::number(__clang_patchlevel__))
|
#define GTA5SYNC_COMPILER QString("Clang %1.%2.%3").arg(QString::number(__clang_major__), QString::number(__clang_minor__), QString::number(__clang_patchlevel__))
|
||||||
|
#else
|
||||||
|
#define GTA5SYNC_COMPILER QString("Apple LLVM %1.%2.%3").arg(QString::number(__clang_major__), QString::number(__clang_minor__), QString::number(__clang_patchlevel__))
|
||||||
|
#endif
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define GTA5SYNC_COMPILER QString("GCC %1.%2.%3").arg(QString::number(__GNUC__), QString::number(__GNUC_MINOR__), QString::number(__GNUC_PATCHLEVEL__))
|
#define GTA5SYNC_COMPILER QString("GCC %1.%2.%3").arg(QString::number(__GNUC__), QString::number(__GNUC_MINOR__), QString::number(__GNUC_PATCHLEVEL__))
|
||||||
#elif defined(__GNUG__)
|
#elif defined(__GNUG__)
|
||||||
|
|
Loading…
Reference in a new issue