- fix: error in auto generate makefile under linux

This commit is contained in:
Roy Qu 2022-03-30 19:50:55 +08:00
parent 7bc5a2ee7a
commit 17516c8111
4 changed files with 5 additions and 3 deletions

View File

@ -15,6 +15,7 @@ Red Panda C++ Version 1.0.2
- enhancement: only tag the first inconstantency when running problem case, to greatly reduce compare & display time
- fix: can't stop a freeze program that has stdin redirected.
- enhancement: context menu for problem cases table
- fix: error in auto generate makefile under linux
Red Panda C++ Version 1.0.1
- fix: only convert project icon file when it's filename doesn't end with ".ico"

View File

@ -284,9 +284,9 @@ void ProjectCompiler::writeMakeClean(QFile &file)
{
writeln(file, "clean: clean-custom");
if (mProject->options().type == ProjectType::DynamicLib)
writeln(file, "\t${RM} $(CLEANOBJ) $(BIN) $(DEF) $(STATIC) > NUL 2>&1");
writeln(file, QString("\t${RM} $(CLEANOBJ) $(BIN) $(DEF) $(STATIC) > %1 2>&1").arg(NULL_FILE));
else
writeln(file, "\t${RM} $(CLEANOBJ) $(BIN) > NUL 2>&1");
writeln(file, QString("\t${RM} $(CLEANOBJ) $(BIN) > %1 2>&1").arg(NULL_FILE));
writeln(file);
}

View File

@ -282,7 +282,7 @@ private slots:
void onProblemSetIndexChanged(const QModelIndex &current, const QModelIndex &previous);
void onProblemCaseIndexChanged(const QModelIndex &current, const QModelIndex &previous);
void onProblemNameChanged(int index);
void onRroblemRunCurrentCase();
void onProblemRunCurrentCase();
void onNewProblemConnection();
void updateProblemTitle();
void onEditorClosed();

View File

@ -698,6 +698,7 @@ void Project::setCompilerSet(int compilerSetIndex)
if (mOptions.compilerSet != compilerSetIndex) {
mOptions.compilerSet = compilerSetIndex;
updateCompilerSetType();
setModified(true);
}
}