forked from qt-creator/qt-creator
QmakeProjectManager: Avoid endless loop on self-referencing mkspec links
Change-Id: I2b8fda49931c2f133f96c6e1c8001757d926af9e Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -659,7 +659,7 @@ QString QmakeBuildConfiguration::extractSpecFromArguments(QString *args,
|
|||||||
parsedSpec = baseMkspecDir.pathAppended(parsedSpec.path());
|
parsedSpec = baseMkspecDir.pathAppended(parsedSpec.path());
|
||||||
}
|
}
|
||||||
|
|
||||||
while (parsedSpec.isSymLink())
|
for (int i = 0; i < 5 && parsedSpec.isSymLink(); ++i)
|
||||||
parsedSpec = parsedSpec.symLinkTarget();
|
parsedSpec = parsedSpec.symLinkTarget();
|
||||||
|
|
||||||
if (parsedSpec.isChildOf(baseMkspecDir)) {
|
if (parsedSpec.isChildOf(baseMkspecDir)) {
|
||||||
|
Reference in New Issue
Block a user