forked from qt-creator/qt-creator
Improve selection of compiler when creating desktop kit
This is of special importance on Windows where every compiler seems to be incompatible with every other. Change-Id: I8a2c6122f1bc8e86bf23157f1ca1cd9e75b759b5 Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -98,13 +98,15 @@ void QmakeKitInformation::setup(ProjectExplorer::Kit *k)
|
||||
|
||||
if (!tc || !tc->suggestedMkspecList().contains(spec)) {
|
||||
QList<ProjectExplorer::ToolChain *> tcList = ProjectExplorer::ToolChainManager::instance()->toolChains();
|
||||
ProjectExplorer::ToolChain *possibleTc = 0;
|
||||
foreach (ProjectExplorer::ToolChain *current, tcList) {
|
||||
if (version->qtAbis().contains(current->targetAbi())
|
||||
&& current->suggestedMkspecList().contains(spec)) {
|
||||
ProjectExplorer::ToolChainKitInformation::setToolChain(k, current);
|
||||
break;
|
||||
if (version->qtAbis().contains(current->targetAbi())) {
|
||||
possibleTc = current;
|
||||
if (current->suggestedMkspecList().contains(spec))
|
||||
break;
|
||||
}
|
||||
}
|
||||
ProjectExplorer::ToolChainKitInformation::setToolChain(k, possibleTc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user