diff options
author | Dmitrii Meshkov <demansong@gmail.com> | 2024-02-15 10:42:12 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2024-02-15 19:28:03 +0000 |
commit | 2d37680d3b22d12ee2806d3cbeebba3df2c69a58 (patch) | |
tree | 7b3933e37c02e1ba36037855be9146efc142f63e /src/lib | |
parent | 7deb6f01246dfdb74aa00743680ce42e06459ce8 (diff) |
clang-cl: Check that registry path wasn't in extra paths
Change-Id: Id477de4750ac3bce8e39abe5d2195c75ca0addef
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/corelib/tools/clangclinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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> 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); } |