From 9bc5203a93b6f75c834ddfb828a71f41d3ab73af Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 20 Aug 2023 21:38:26 +0800 Subject: [PATCH] - fix: Can't find other compilers that in the same folder with gcc. --- NEWS.md | 1 + RedPandaIDE/settings.cpp | 12 +++++++----- packages/debian/changelog | 6 ++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/NEWS.md b/NEWS.md index 6421b36c..b081983b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -35,6 +35,7 @@ Red Panda C++ Version 2.24 - enhancement: False branches are displayed as comments. - enhancement: Support SDCC Project. - enhancement: 3 compare mode for problem cases. + - fix: Can't find other compilers that in the same folder with gcc. Red Panda C++ Version 2.23 diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index d5a47c02..bbf38999 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -3079,23 +3079,25 @@ bool Settings::CompilerSets::addSets(const QString &folder, const QString& c_pro bool Settings::CompilerSets::addSets(const QString &folder) { + bool found = false; if (!directoryExists(folder)) - return false; + return found; if (fileExists(folder, GCC_PROGRAM)) { addSets(folder,GCC_PROGRAM); - return true; + found=true; } if (fileExists(folder, CLANG_PROGRAM)) { addSets(folder,CLANG_PROGRAM); - return true; + found=true; } #ifdef ENABLE_SDCC + qDebug()< Sun, 20 Apr 2023 21:28:00 +0800 + redpanda-cpp (2.23-1) unstable; urgency=medium * Update to 2.23