auto remove a.out generead by tcc

This commit is contained in:
Roy Qu 2022-12-25 12:01:51 +08:00
parent 0af113e2a1
commit 52ed2b79f7
1 changed files with 4 additions and 0 deletions

View File

@ -5455,7 +5455,11 @@ void MainWindow::onCompileFinished(QString filename, bool isCheckSyntax)
if (isCheckSyntax) { if (isCheckSyntax) {
if (!CompilerInfoManager::supportSyntaxCheck(pSettings->compilerSets().defaultSet()->compilerType())) { if (!CompilerInfoManager::supportSyntaxCheck(pSettings->compilerSets().defaultSet()->compilerType())) {
QDir dir(extractFileDir(filename)); QDir dir(extractFileDir(filename));
#ifdef Q_OS_WIN
QFile::remove(dir.absoluteFilePath("a.exe")); QFile::remove(dir.absoluteFilePath("a.exe"));
#else
QFile::remove(dir.absoluteFilePath("a.out"));
#endif
} }
// check syntax in back, don't change message panel // check syntax in back, don't change message panel