Fix available toolchains for cmake and generic project manager

Reviewed-By: hunger
This commit is contained in:
dt
2011-04-13 12:01:54 +02:00
parent b9251a6626
commit 8a276097c6
2 changed files with 8 additions and 2 deletions

View File

@@ -427,7 +427,10 @@ bool GenericProject::fromMap(const QVariantMap &map)
if (!id.isNull()) {
setToolChain(toolChainManager->findToolChain(id));
} else {
QList<ToolChain *> tcs = toolChainManager->findToolChains(Abi::hostAbi());
ProjectExplorer::Abi abi = ProjectExplorer::Abi::hostAbi();
abi = ProjectExplorer::Abi(abi.architecture(), abi.os(), ProjectExplorer::Abi::UnknownFlavor,
abi.binaryFormat(), abi.wordWidth() == 32 ? 32 : 0);
QList<ToolChain *> tcs = toolChainManager->findToolChains(abi);
if (tcs.isEmpty())
tcs = toolChainManager->toolChains();
if (!tcs.isEmpty())