ProjectExplorer: Fix Abi::isValid() for WebAssembly

Fixes: QTCREATORBUG-31577
Change-Id: I38545642aa97300e34989f44d3e32718f0b866cc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Kandeler
2024-09-18 12:52:51 +02:00
parent cea97fb6f0
commit c642ec5cee

View File

@@ -737,11 +737,13 @@ bool Abi::isCompatibleWith(const Abi &other) const
bool Abi::isValid() const bool Abi::isValid() const
{ {
return m_architecture != UnknownArchitecture if (m_architecture == UnknownArchitecture || m_binaryFormat == UnknownFormat
&& m_os != UnknownOS || m_wordWidth == 0) {
&& m_osFlavor != UnknownFlavor return false;
&& m_binaryFormat != UnknownFormat }
&& m_wordWidth != 0;
return m_architecture == AsmJsArchitecture
|| (m_os != UnknownOS && m_osFlavor != UnknownFlavor);
} }
bool Abi::isNull() const bool Abi::isNull() const