forked from qt-creator/qt-creator
Fix available toolchains for cmake and generic project manager
Reviewed-By: hunger
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user