diff --git a/oscar/oscar.pro b/oscar/oscar.pro index bb106733..bfeab7f3 100644 --- a/oscar/oscar.pro +++ b/oscar/oscar.pro @@ -476,7 +476,13 @@ QMAKE_CXXFLAGS += -Wno-error=deprecated-declarations memdebug { !win32 { # add memory checking on Linux and macOS debug builds QMAKE_CFLAGS += -g -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope + lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { + QMAKE_CFLAGS -= -fsanitize-address-use-after-scope + } QMAKE_CXXFLAGS += -g -Werror -fsanitize=address -fno-omit-frame-pointer -fno-common -fsanitize-address-use-after-scope + lessThan(QT_MAJOR_VERSION,5)|lessThan(QT_MINOR_VERSION,9) { + QMAKE_CXXFLAGS -= -fsanitize-address-use-after-scope + } QMAKE_LFLAGS += -fsanitize=address } }