forked from qt-creator/qt-creator
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:
@@ -1626,7 +1626,7 @@ Toolchains GccToolchainFactory::autoDetectSdkClangToolchain(const Toolchains &kn
|
|||||||
|
|
||||||
for (Toolchain * const existingTc : known) {
|
for (Toolchain * const existingTc : known) {
|
||||||
if (existingTc->compilerCommand() == *compilerPath)
|
if (existingTc->compilerCommand() == *compilerPath)
|
||||||
return {existingTc};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {autoDetectToolchain({*compilerPath, Constants::C_LANGUAGE_ID}, GccToolchain::Clang)};
|
return {autoDetectToolchain({*compilerPath, Constants::C_LANGUAGE_ID}, GccToolchain::Clang)};
|
||||||
|
Reference in New Issue
Block a user