Qmake: Do not warn when a compiler misses an .exe on windows

Task-number: QTCREATORBUG-17489
Change-Id: I8fbbf48b41b84adf8905d81ae21ded4ed2fd541d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2017-03-23 17:17:58 +01:00
parent 535cc76cac
commit d5f242f3d6
3 changed files with 25 additions and 1 deletions

View File

@@ -268,6 +268,19 @@ QStringList Environment::appendExeExtensions(const QString &executable) const
return execs;
}
bool Environment::isSameExecutable(const QString &exe1, const QString &exe2) const
{
const QStringList exe1List = appendExeExtensions(exe1);
const QStringList exe2List = appendExeExtensions(exe2);
for (const QString &i1 : exe1List) {
for (const QString &i2 : exe2List) {
if (Utils::FileName::fromString(i1) == Utils::FileName::fromString(i2))
return true;
}
}
return false;
}
FileName Environment::searchInPath(const QString &executable,
const QStringList &additionalDirs,
bool (*func)(const QString &name)) const