From 2d37680d3b22d12ee2806d3cbeebba3df2c69a58 Mon Sep 17 00:00:00 2001 From: Dmitrii Meshkov Date: Thu, 15 Feb 2024 10:42:12 +0300 Subject: clang-cl: Check that registry path wasn't in extra paths Change-Id: Id477de4750ac3bce8e39abe5d2195c75ca0addef Reviewed-by: Ivan Komissarov --- src/lib/corelib/tools/clangclinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/corelib') diff --git a/src/lib/corelib/tools/clangclinfo.cpp b/src/lib/corelib/tools/clangclinfo.cpp index 68486b91f..d89c5cb9b 100644 --- a/src/lib/corelib/tools/clangclinfo.cpp +++ b/src/lib/corelib/tools/clangclinfo.cpp @@ -121,7 +121,7 @@ std::vector ClangClInfo::installedCompilers( if (registry.contains(key)) { const auto compilerPath = QDir::fromNativeSeparators(registry.value(key).toString()) + QStringLiteral("/bin/") + compilerName; - if (QFileInfo::exists(compilerPath)) + if (QFileInfo::exists(compilerPath) && !contains(compilerPaths, compilerPath)) compilerPaths.push_back(compilerPath); } -- cgit v1.2.3