Merge remote-tracking branch 'origin/4.6'

Change-Id: Ib8a52ad56c4d74542c5a4c283699f6afca2ed6ae
This commit is contained in:
Orgad Shaneh
2018-03-02 10:03:29 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ void QmakeKitInformation::setup(Kit *k)
const Environment systemEnvironment = Environment::systemEnvironment();
ToolChain *bestTc = Utils::findOrDefault(goodTcs,
[&systemEnvironment](const ToolChain *t) {
return systemEnvironment.path().contains(t->compilerCommand().parentDir().toString());
return systemEnvironment.path().contains(t->compilerCommand().parentDir());
});
if (!bestTc) {
bestTc = goodTcs.isEmpty() ? possibleTcs.last() : goodTcs.last();