Commit 05ae44dc authored by Tobias Hunger's avatar Tobias Hunger Committed by Tobias Hunger

ToolChains: Do not auto-detect invalid toolchains

Change-Id: I79648e9b27c2b0adc2695237518badc45a8557d4
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
Reviewed-by: default avatarVikas Pachdha <vikas.pachdha@theqtcompany.com>
parent 7d922297
......@@ -171,6 +171,9 @@ static QList<ToolChain *> autoDetectToolChains(const QList<ToolChain *> alreadyK
foreach (ToolChainFactory *f, factories)
result.append(f->autoDetect(alreadyKnownTcs));
// Remove invalid toolchains that might have sneaked in.
result = Utils::filtered(result, [](const ToolChain *tc) { return tc->isValid(); });
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