diff options
Diffstat (limited to 'tools/qmake/mkspecs/features/functions.prf')
-rw-r--r-- | tools/qmake/mkspecs/features/functions.prf | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf index b4965129c..1a1f3cf77 100644 --- a/tools/qmake/mkspecs/features/functions.prf +++ b/tools/qmake/mkspecs/features/functions.prf @@ -221,17 +221,15 @@ defineTest(isSanitizerLinuxClangVersionSupported) { } defineTest(isGCCVersionSupported) { + equals(QT_GCC_MAJOR_VERSION, 4):equals(QT_GCC_MINOR_VERSION, 9):lessThan(QT_GCC_PATCH_VERSION, 2) { + skipBuild("Gcc 4.9.1 fails to compile QtWebEngine, please use another gcc version.") + return(false) + } # The below will work for gcc 4.7 and up and also match gcc 5 - CONFIG(release, debug|release): greaterThan(QT_GCC_MINOR_VERSION, 6):return(true) + greaterThan(QT_GCC_MINOR_VERSION, 6):return(true) greaterThan(QT_GCC_MAJOR_VERSION, 4):return(true) - # We need GCC 4.9 for debug builds because Skia handles SIMD inlines in headers poorly. - greaterThan(QT_GCC_MINOR_VERSION, 8):return(true) - CONFIG(debug, debug|release) { - skipBuild("Using gcc version "$$QT_GCC_MAJOR_VERSION"."$$QT_GCC_MINOR_VERSION", but at least gcc version 4.9 is required to build debug versions of Qt WebEngine.") - } else { - skipBuild("Using gcc version "$$QT_GCC_MAJOR_VERSION"."$$QT_GCC_MINOR_VERSION", but at least gcc version 4.7 is required to build Qt WebEngine.") - } + skipBuild("Using gcc version "$$QT_GCC_MAJOR_VERSION"."$$QT_GCC_MINOR_VERSION", but at least gcc version 4.7 is required to build Qt WebEngine.") return(false) } |