auto remove a.out generead by tcc
This commit is contained in:
parent
0af113e2a1
commit
52ed2b79f7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue