forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user