QtSupport: Prevent misleading message about ABI mismatch

MSVC 2015/17/19 are ABI compatible, but BaseQtVersion::validateKit()
would emit a warning when using e.g. a Qt MSVC 2017 build with an MSVC
2019 toolchain.

Change-Id: I50ba026ae7b55e052b26826076ef962f369a05a1
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Christian Kandeler
2020-02-27 13:15:30 +01:00
parent 171ad62aed
commit bd03041428
3 changed files with 8 additions and 1 deletions

View File

@@ -666,6 +666,12 @@ bool Abi::isCompatibleWith(const Abi &other) const
return isCompat;
}
bool Abi::isFullyCompatibleWith(const Abi &other) const
{
return *this == other || (wordWidth() == other.wordWidth()
&& compatibleMSVCFlavors(osFlavor(), other.osFlavor()));
}
bool Abi::isValid() const
{
return m_architecture != UnknownArchitecture