forked from qt-creator/qt-creator
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:
@@ -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, ""));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user