Skip to content

Commit

Permalink
auto remove a.out generead by tcc
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Dec 25, 2022
1 parent 0af113e commit 52ed2b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RedPandaIDE/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5455,7 +5455,11 @@ void MainWindow::onCompileFinished(QString filename, bool isCheckSyntax)
if (isCheckSyntax) {
if (!CompilerInfoManager::supportSyntaxCheck(pSettings->compilerSets().defaultSet()->compilerType())) {
QDir dir(extractFileDir(filename));
#ifdef Q_OS_WIN
QFile::remove(dir.absoluteFilePath("a.exe"));
#else
QFile::remove(dir.absoluteFilePath("a.out"));
#endif
}

// check syntax in back, don't change message panel
Expand Down

0 comments on commit 52ed2b7

Please sign in to comment.