Commit 7d431188 authored by dt's avatar dt
Browse files

Fix toolchain restricted to targets handling

Reviewed-By: hunger
parent 081e3008
......@@ -359,7 +359,8 @@ QList<ToolChain *> Target::possibleToolChains(BuildConfiguration *) const
QList<ToolChain *> tcList = ToolChainManager::instance()->toolChains();
QList<ToolChain *> result;
foreach (ToolChain *tc, tcList) {
if (!tc->restrictedToTargets().contains(id()))
QStringList restricted = tc->restrictedToTargets();
if (restricted.isEmpty() || restricted.contains(id()))
return result;
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