diff options
-rw-r--r-- | tools/qmake/mkspecs/features/functions.prf | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf index 35607986d..a26dbed48 100644 --- a/tools/qmake/mkspecs/features/functions.prf +++ b/tools/qmake/mkspecs/features/functions.prf @@ -210,9 +210,16 @@ defineTest(isSanitizerLinuxClangVersionSupported) { defineTest(isGCCVersionSupported) { # The below will work for gcc 4.7 and up and also match gcc 5 - greaterThan(QT_GCC_MINOR_VERSION, 6):return(true) + CONFIG(release, debug|release): greaterThan(QT_GCC_MINOR_VERSION, 6):return(true) greaterThan(QT_GCC_MAJOR_VERSION, 4):return(true) - 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.") + + # 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.") + } return(false) } |