forked from qt-creator/qt-creator
MingwToolChain: Avoid double call of hostAbi()
Change-Id: Ie10bf134841b747b219756f6b986fe49eb443f52 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
f18bc981d5
commit
63d543055e
@@ -1191,8 +1191,8 @@ MingwToolChainFactory::MingwToolChainFactory()
|
||||
|
||||
QList<ToolChain *> MingwToolChainFactory::autoDetect(const QList<ToolChain *> &alreadyKnown)
|
||||
{
|
||||
const Abi ha = Abi(Abi::hostAbi().architecture(), Abi::WindowsOS, Abi::WindowsMSysFlavor,
|
||||
Abi::PEFormat, Abi::hostAbi().wordWidth());
|
||||
Abi ha = Abi::hostAbi();
|
||||
ha = Abi(ha.architecture(), Abi::WindowsOS, Abi::WindowsMSysFlavor, Abi::PEFormat, ha.wordWidth());
|
||||
return autoDetectToolchains(QLatin1String("g++"), ha, alreadyKnown);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user