1216f596bd
... and rename those determined by toolchain.prf to QMAKE_* (this was already the case for the newly introduced msvc and icc variables). this restores the ability for user projects to query the toolchain qt itself was built with, which is necessary for compatibility checks. in fact, we may do such validation in toolchain.prf itself at a later point. Change-Id: I35f4c393c5e4e0fe987c0844714b7a8f8687c24e Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
30 lines
851 B
C++
30 lines
851 B
C++
// Keep this file small. The pre-processed contents are eval'd by qmake.
|
|
QT_COMPILER_STDCXX = __cplusplus
|
|
#ifdef _MSC_VER
|
|
QMAKE_MSC_VER = _MSC_VER
|
|
QMAKE_MSC_FULL_VER = _MSC_FULL_VER
|
|
#endif
|
|
#ifdef __INTEL_COMPILER
|
|
QMAKE_ICC_VER = __INTEL_COMPILER
|
|
QMAKE_ICC_UPDATE_VER = __INTEL_COMPILER_UPDATE
|
|
#endif
|
|
#ifdef __APPLE_CC__
|
|
QMAKE_APPLE_CC = __APPLE_CC__
|
|
#endif
|
|
#ifdef __clang__
|
|
#ifdef __APPLE_CC__
|
|
QMAKE_APPLE_CLANG_MAJOR_VERSION = __clang_major__
|
|
QMAKE_APPLE_CLANG_MINOR_VERSION = __clang_minor__
|
|
QMAKE_APPLE_CLANG_PATCH_VERSION = __clang_patchlevel__
|
|
#else
|
|
QMAKE_CLANG_MAJOR_VERSION = __clang_major__
|
|
QMAKE_CLANG_MINOR_VERSION = __clang_minor__
|
|
QMAKE_CLANG_PATCH_VERSION = __clang_patchlevel__
|
|
#endif
|
|
#endif
|
|
#ifdef __GNUC__
|
|
QMAKE_GCC_MAJOR_VERSION = __GNUC__
|
|
QMAKE_GCC_MINOR_VERSION = __GNUC_MINOR__
|
|
QMAKE_GCC_PATCH_VERSION = __GNUC_PATCHLEVEL__
|
|
#endif
|