remove pointless code path
there is no need to consider the "-framework foo" syntax, as we fully control the list and insert elements exclusively as "-framework" "foo" a few lines down. Change-Id: I95fa8b46f53673ea3df1a67a2a44d11f7d679cc6 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
e0470ba2fe
commit
3cd49cb628
@ -582,19 +582,11 @@ UnixMakefileGenerator::processPrlFiles()
|
|||||||
}
|
}
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for(int x = 0; x < lflags[arch].size(); ++x) {
|
for(int x = 0; x < lflags[arch].size(); ++x) {
|
||||||
ProString xf = lflags[arch].at(x);
|
if (lflags[arch].at(x) == "-framework" && lflags[arch].at(++x) == opt) {
|
||||||
if(xf.startsWith("-framework")) {
|
|
||||||
ProString framework;
|
|
||||||
if(xf.length() > 11)
|
|
||||||
framework = xf.mid(11);
|
|
||||||
else
|
|
||||||
framework = lflags[arch].at(++x);
|
|
||||||
if(framework == opt) {
|
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(!found) {
|
if(!found) {
|
||||||
lflags[arch].append("-framework");
|
lflags[arch].append("-framework");
|
||||||
lflags[arch].append(opt);
|
lflags[arch].append(opt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user