QLibraryInfo: Use __VERSION__ with Clang too
Regular Clang: "Clang 14.0.3" Apple Clang: "Apple LLVM 13.1.6 (clang-1316.0.21.2.3)" Intel oneAPI DPC++: "Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)" Change-Id: I5ff8e16fcdcb4ffd9ab6fffd16eb57c2673d3030 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
20104bb237
commit
72d6b897a4
@ -208,11 +208,7 @@ QLibraryInfo::QLibraryInfo()
|
||||
{ }
|
||||
|
||||
#if defined(Q_CC_CLANG) // must be before GNU, because clang claims to be GNU too
|
||||
# ifdef __apple_build_version__ // Apple clang has other version numbers
|
||||
# define COMPILER_STRING "Clang " __clang_version__ " (Apple)"
|
||||
# else
|
||||
# define COMPILER_STRING "Clang " __clang_version__
|
||||
# endif
|
||||
# define COMPILER_STRING __VERSION__ /* already includes the compiler's name */
|
||||
#elif defined(Q_CC_GHS)
|
||||
# define COMPILER_STRING "GHS " QT_STRINGIFY(__GHS_VERSION_NUMBER)
|
||||
#elif defined(Q_CC_GNU)
|
||||
|
Loading…
x
Reference in New Issue
Block a user