diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index cf5a8aca6ef..34289f9d8ba 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -737,11 +737,13 @@ bool Abi::isCompatibleWith(const Abi &other) const bool Abi::isValid() const { - return m_architecture != UnknownArchitecture - && m_os != UnknownOS - && m_osFlavor != UnknownFlavor - && m_binaryFormat != UnknownFormat - && m_wordWidth != 0; + if (m_architecture == UnknownArchitecture || m_binaryFormat == UnknownFormat + || m_wordWidth == 0) { + return false; + } + + return m_architecture == AsmJsArchitecture + || (m_os != UnknownOS && m_osFlavor != UnknownFlavor); } bool Abi::isNull() const