Trying to fix internal compiler error in GCC.

This commit is contained in:
Roman Telezhynskyi 2023-02-16 13:50:28 +02:00
parent a85595ef3d
commit cb4083fa17

View File

@ -705,8 +705,14 @@ Module {
if (Utilities.versionCompare(cpp.compilerVersion, "11") >= 0) {
debugFlags.push(
"-Wctad-maybe-unsupported",
"-Wmismatched-tags" // bugged in gcc 10
"-Wctad-maybe-unsupported"
)
}
if (qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos") &&
Utilities.versionCompare(cpp.compilerVersion, "10") >= 0) {
debugFlags.push(
"-Wno-mismatched-tags" // bugged in gcc
)
}