forked from qt-creator/qt-creator
Clang: Avoid flooding unknown warning on macOS
clang seems to be pretending to be gcc (besides clang and llvm) on macOS. Change-Id: Ifd838a2918673b8877f5bb5fd8248d4a849664f7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -169,7 +169,7 @@ isEmpty(LLVM_VERSION) {
|
|||||||
LLVM_VERSION =
|
LLVM_VERSION =
|
||||||
} else {
|
} else {
|
||||||
# CLANG-UPGRADE-CHECK: Remove suppression if this warning is resolved.
|
# CLANG-UPGRADE-CHECK: Remove suppression if this warning is resolved.
|
||||||
gcc {
|
gcc:!clang: {
|
||||||
# GCC6 shows full version (6.4.0), while GCC7 and up show only major version (8)
|
# GCC6 shows full version (6.4.0), while GCC7 and up show only major version (8)
|
||||||
GCC_VERSION = $$system("$$QMAKE_CXX -dumpversion")
|
GCC_VERSION = $$system("$$QMAKE_CXX -dumpversion")
|
||||||
GCC_MAJOR_VERSION = $$section(GCC_VERSION, ., 0, 0)
|
GCC_MAJOR_VERSION = $$section(GCC_VERSION, ., 0, 0)
|
||||||
|
Reference in New Issue
Block a user