forked from qt-creator/qt-creator
ProjectExplorer: Tighten ABI check
... when auto-detecting kits. Take the entire ABI into account, including binary format and word width. Fixes: QTCREATORBUG-31119 Change-Id: I495faf3c54738750bddac65f5a1919144b9fecd4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -157,12 +157,10 @@ static bool kitMatchesAbiList(const Kit *kit, const Abis &abis)
|
||||
for (const Toolchain * const tc : toolchains) {
|
||||
const Abi tcAbi = tc->targetAbi();
|
||||
for (const Abi &abi : abis) {
|
||||
if (tcAbi.os() == abi.os() && tcAbi.architecture() == abi.architecture()
|
||||
&& (tcAbi.os() != Abi::LinuxOS || tcAbi.osFlavor() == abi.osFlavor())) {
|
||||
if (tcAbi == abi)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user