ProjectExplorer: Do not detect clang executable twice

This fixes a soft assert in ToolchainManager.

Change-Id: I8d0e4482a2eaff8b021f24558842fec557d7b4fe
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2024-10-21 13:51:01 +02:00
parent 7f94d49191
commit 8b78b9de1c

View File

@@ -1626,7 +1626,7 @@ Toolchains GccToolchainFactory::autoDetectSdkClangToolchain(const Toolchains &kn
for (Toolchain * const existingTc : known) {
if (existingTc->compilerCommand() == *compilerPath)
return {existingTc};
return {};
}
return {autoDetectToolchain({*compilerPath, Constants::C_LANGUAGE_ID}, GccToolchain::Clang)};