Commit e1f1f318 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

workaround apple gcc breakage

parent b34889e0
......@@ -316,7 +316,8 @@ QStringList QMakeStep::parserArguments()
result << arg;
} else {
for (int i = 0; i < ProFileOption::modeMapSize; ++i) {
if (QLatin1String(ProFileOption::modeMap[i].qmakeOption) == arg) {
// Workaround: Apple GCC does not like ProFileOption::modeMap[i], because the array's bounds are not known
if (QLatin1String((&ProFileOption::modeMap[0] + i)->qmakeOption) == arg) {
result << arg;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment