diff --git a/NEWS.md b/NEWS.md index ae0100fe..d4b89ba1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -142,6 +142,7 @@ Red Panda C++ Version 2.27 - fix: Positions of current matching parenthesis not correctly updated. - fix: Can't show correct completion info for vars declared with template parameters ending with ">>". - enhancement: Auto type induction for "std::make_shared"/"std::make_unique". + - sdcc project compiler: compile source file in subfolders. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/compiler/projectcompiler.cpp b/RedPandaIDE/compiler/projectcompiler.cpp index cb6dac1a..4d29a0e8 100644 --- a/RedPandaIDE/compiler/projectcompiler.cpp +++ b/RedPandaIDE/compiler/projectcompiler.cpp @@ -362,7 +362,7 @@ void ProjectCompiler::writeMakeClean(QFile &file) if (mProject->options().type == ProjectType::DynamicLib) { target +=" $(STATIC)"; } - writeln(file, QString("\t-$(RM) %1 >%2 2>%2 ").arg(target,NULL_FILE)); + writeln(file, QString("\t-$(RM) %1 >%2 2>&1").arg(target,NULL_FILE)); writeln(file); } diff --git a/RedPandaIDE/compiler/sdccprojectcompiler.cpp b/RedPandaIDE/compiler/sdccprojectcompiler.cpp index 8ef20a44..683333fe 100644 --- a/RedPandaIDE/compiler/sdccprojectcompiler.cpp +++ b/RedPandaIDE/compiler/sdccprojectcompiler.cpp @@ -196,7 +196,7 @@ void SDCCProjectCompiler::writeMakeIncludes(QFile &file) void SDCCProjectCompiler::writeMakeClean(QFile &file) { writeln(file, "clean: clean-custom"); - writeln(file, QString("\t-$(RM) $(CLEANOBJ) >%1 2>%1||:").arg(NULL_FILE)); + writeln(file, QString("\t-$(RM) $(CLEANOBJ) >%1 2>&1||:").arg(NULL_FILE)); writeln(file); }