forked from qt-creator/qt-creator
MSVC: Add missing operator ==
Unbreaks MSCV toolchain registration. Task-number: QTCREATORBUG-6875 Change-Id: I55e52251ca1621320b5f9db022bab8d79f19030e Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -274,6 +274,18 @@ QString AbstractMsvcToolChain::findInstalledJom()
|
||||
return jom;
|
||||
}
|
||||
|
||||
bool AbstractMsvcToolChain::operator ==(const ToolChain &other) const
|
||||
{
|
||||
if (!ToolChain::operator ==(other))
|
||||
return false;
|
||||
|
||||
const AbstractMsvcToolChain *msvcTc = static_cast<const AbstractMsvcToolChain *>(&other);
|
||||
return targetAbi() == msvcTc->targetAbi()
|
||||
&& m_debuggerCommand == msvcTc->m_debuggerCommand
|
||||
&& m_vcvarsBat == msvcTc->m_vcvarsBat;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
|
@@ -65,6 +65,9 @@ public:
|
||||
|
||||
QString varsBat() const { return m_vcvarsBat; }
|
||||
static QString findInstalledJom();
|
||||
|
||||
bool operator ==(const ToolChain &) const;
|
||||
|
||||
protected:
|
||||
virtual Utils::Environment readEnvironmentSetting(Utils::Environment& env) const = 0;
|
||||
virtual QByteArray msvcPredefinedMacros(const Utils::Environment& env) const;
|
||||
|
Reference in New Issue
Block a user