ProjectExplorer: Merge GccToolChainFactories further

This replaces the four classes from the GccToolChainFactories
hierarchy by a single (parametrized) GccToolChainFactory, but
makes the "RealGcc" one responsible for all autodetection.

This is a hack to move closer to a "scan only once" setup, and
temporarily necessary as there is currently one factory creates
one type of toolchain, so we need four factories for the current
four gcc-ish toolchain types.

Change-Id: Icbecb1be6e89cf5efad76baf92ef38ac63be074f
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-09-26 10:25:16 +02:00
parent 61048fa737
commit 4d2f3e8b01
4 changed files with 190 additions and 210 deletions

View File

@@ -671,8 +671,7 @@ void ToolChainFactory::setSupportsAllLanguages(bool supportsAllLanguages)
m_supportsAllLanguages = supportsAllLanguages;
}
void ToolChainFactory::setToolchainConstructor
(const ToolChainConstructor &toolchainContructor)
void ToolChainFactory::setToolchainConstructor(const ToolChainConstructor &toolchainContructor)
{
m_toolchainConstructor = toolchainContructor;
}