redirect 2>&1

This commit is contained in:
Roy Qu 2024-04-14 12:27:01 +08:00
parent 44802c6315
commit 081d37e21f
3 changed files with 3 additions and 2 deletions

View File

@ -142,6 +142,7 @@ Red Panda C++ Version 2.27
- fix: Positions of current matching parenthesis not correctly updated. - fix: Positions of current matching parenthesis not correctly updated.
- fix: Can't show correct completion info for vars declared with template parameters ending with ">>". - 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". - 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 Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors. - enhancement: Code suggestion for embedded std::vectors.

View File

@ -362,7 +362,7 @@ void ProjectCompiler::writeMakeClean(QFile &file)
if (mProject->options().type == ProjectType::DynamicLib) { if (mProject->options().type == ProjectType::DynamicLib) {
target +=" $(STATIC)"; 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); writeln(file);
} }

View File

@ -196,7 +196,7 @@ void SDCCProjectCompiler::writeMakeIncludes(QFile &file)
void SDCCProjectCompiler::writeMakeClean(QFile &file) void SDCCProjectCompiler::writeMakeClean(QFile &file)
{ {
writeln(file, "clean: clean-custom"); 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); writeln(file);
} }