Commit 42da91e2 authored by Andreas Holzammer's avatar Andreas Holzammer Committed by Tobias Hunger
Browse files

Fix correction of toolchain for cross compile



For cross compile suggestedMkspecList is always empty,
so dont try to autodetect a compiler then if toolchain
was already found.

Change-Id: I97d70e65fef3a5be0fdf20949c18cf98d51513d4
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 01123f6a
......@@ -95,7 +95,7 @@ void QmakeKitInformation::setup(ProjectExplorer::Kit *k)
ProjectExplorer::ToolChain *tc = ProjectExplorer::ToolChainKitInformation::toolChain(k);
if (!tc || !tc->suggestedMkspecList().contains(spec)) {
if (!tc || (!tc->suggestedMkspecList().empty() && !tc->suggestedMkspecList().contains(spec))) {
QList<ProjectExplorer::ToolChain *> tcList = ProjectExplorer::ToolChainManager::instance()->toolChains();
ProjectExplorer::ToolChain *possibleTc = 0;
foreach (ProjectExplorer::ToolChain *current, tcList) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment