ProjectExplorer: Fix CustomToolChain::operator==

We need to take the compiler command into account.

Fixes: QTCREATORBUG-30133
Change-Id: I5f120d4b3e41cbeeae255a2566332389d3eba508
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2024-01-10 14:51:30 +01:00
parent 65af79af84
commit 063234c179

View File

@@ -305,6 +305,7 @@ bool CustomToolChain::operator ==(const ToolChain &other) const
auto customTc = static_cast<const CustomToolChain *>(&other); auto customTc = static_cast<const CustomToolChain *>(&other);
return m_makeCommand == customTc->m_makeCommand return m_makeCommand == customTc->m_makeCommand
&& compilerCommand() == customTc->compilerCommand()
&& targetAbi() == customTc->targetAbi() && targetAbi() == customTc->targetAbi()
&& m_predefinedMacros == customTc->m_predefinedMacros && m_predefinedMacros == customTc->m_predefinedMacros
&& m_builtInHeaderPaths == customTc->m_builtInHeaderPaths; && m_builtInHeaderPaths == customTc->m_builtInHeaderPaths;