- fix: Can't find other compilers that in the same folder with gcc.
This commit is contained in:
parent
4be629727d
commit
9bc5203a93
1
NEWS.md
1
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
|
||||
|
||||
|
|
|
@ -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()<<folder;
|
||||
if (fileExists(folder, SDCC_PROGRAM)) {
|
||||
addSets(folder,SDCC_PROGRAM);
|
||||
return true;
|
||||
found=true;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
return found;
|
||||
}
|
||||
|
||||
void Settings::CompilerSets::clearSets()
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
redpanda-cpp (2.24-1) unstable; urgency=medium
|
||||
|
||||
* Update to 2.24
|
||||
|
||||
-- Roy Qu (瞿华) <royqh1979@gmail.com> Sun, 20 Apr 2023 21:28:00 +0800
|
||||
|
||||
redpanda-cpp (2.23-1) unstable; urgency=medium
|
||||
|
||||
* Update to 2.23
|
||||
|
|
Loading…
Reference in New Issue