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:
parent
ad11cab484
commit
80ac9e8b7c
@ -79,6 +79,14 @@ qtConfig(png) {
|
|||||||
HEADERS += image/qpnghandler_p.h
|
HEADERS += image/qpnghandler_p.h
|
||||||
SOURCES += image/qpnghandler.cpp
|
SOURCES += image/qpnghandler.cpp
|
||||||
QMAKE_USE_PRIVATE += libpng
|
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
|
# SIMD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user