Commit dcd51766 authored by tjenssen's avatar tjenssen Committed by Tobias Hunger
Browse files

add a fallback for automatic detected toolchains

Change-Id: I44553ae202fe4e1aae4a845cdcdac98a94f9b524
Reviewed-by: default avatarTobias Hunger <>
parent 4f36ad63
......@@ -202,7 +202,19 @@ ToolChain *ToolChainKitInformation::toolChain(const Kit *k)
if (!k)
return 0;
const QString id = k->value(Core::Id(TOOLCHAIN_INFORMATION)).toString();
return ToolChainManager::instance()->findToolChain(id);
if (id.isEmpty())
return 0;
ToolChain *tc = ToolChainManager::instance()->findToolChain(id);
if (tc)
return tc;
// ID is not found: Might be an ABI string...
foreach (ToolChain *current, ToolChainManager::instance()->toolChains()) {
if (current->targetAbi().toString() == id)
return current;
return 0;
void ToolChainKitInformation::setToolChain(Kit *k, ToolChain *tc)
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