Compile fix for MinGW 8.1.0

Workaround for libpng bug in GCC 8.1.0.

Task-number: QTQAINFRA-3303
Change-Id: Id7668e795cb4ab16de3199fc3727d844aa31bfad
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
This commit is contained in:
Cristian Adam 2019-11-12 17:59:51 +01:00
parent ad11cab484
commit 80ac9e8b7c

View File

@ -79,6 +79,14 @@ qtConfig(png) {
HEADERS += image/qpnghandler_p.h
SOURCES += image/qpnghandler.cpp
QMAKE_USE_PRIVATE += libpng
win32:mingw {
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86048
GCC_VERSION = "$${QMAKE_GCC_MAJOR_VERSION}.$${QMAKE_GCC_MINOR_VERSION}.$${QMAKE_GCC_PATCH_VERSION}"
equals(GCC_VERSION, "8.1.0") {
QMAKE_CXXFLAGS += -fno-reorder-blocks-and-partition
}
}
}
# SIMD