Skip to content
Snippets Groups Projects
Commit e6017c40 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

QtOptionsPageWidget::validInformation(): Use ToolChainManager::toolChain()


Use a predicate to check whether any toolchain can be found instead
of searching through all of them.

Change-Id: I6d4417c548b37629dc43c11e313250c24777a5ca
Reviewed-by: default avatarTobias Hunger <tobias.hunger@qt.io>
parent 99dff90b
No related branches found
No related tags found
No related merge requests found
...@@ -389,8 +389,15 @@ QtOptionsPageWidget::ValidityInfo QtOptionsPageWidget::validInformation(const Ba ...@@ -389,8 +389,15 @@ QtOptionsPageWidget::ValidityInfo QtOptionsPageWidget::validInformation(const Ba
// Do we have tool chain issues? // Do we have tool chain issues?
QList<Abi> missingToolChains; QList<Abi> missingToolChains;
const QList<Abi> qtAbis = version->qtAbis(); const QList<Abi> qtAbis = version->qtAbis();
for (const Abi &abi : qtAbis) { for (const Abi &abi : qtAbis) {
if (ToolChainManager::findToolChains(abi).isEmpty()) const auto abiCompatePred = [&abi] (const ToolChain *tc)
{
return Utils::contains(tc->supportedAbis(),
[&abi](const Abi &sabi) { return sabi.isCompatibleWith(abi); });
};
if (!ToolChainManager::toolChain(abiCompatePred))
missingToolChains.append(abi); missingToolChains.append(abi);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment