ProjectExplorer: speed up clang-cl toolchain detection

Do not guess the extension when we already it's clang-cl.exe

Change-Id: Ifd0d069f466d4b01bc3cfadc456ea6c97ea30743
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
David Schulz
2023-09-21 12:52:01 +02:00
parent 359f6e54b8
commit 6ff28649c2

View File

@@ -2057,7 +2057,7 @@ Toolchains ClangClToolChainFactory::autoDetect(const ToolchainDetector &detector
}
const Utils::Environment systemEnvironment = Utils::Environment::systemEnvironment();
const Utils::FilePath clangClPath = systemEnvironment.searchInPath("clang-cl");
const Utils::FilePath clangClPath = systemEnvironment.searchInPath("clang-cl.exe");
if (!clangClPath.isEmpty())
results.append(detectClangClToolChainInPath(clangClPath, known, ""));