Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Jan 1, 2025
1 parent 6d7d476 commit 85bafb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RedPandaIDE/compiler/filecompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bool FileCompiler::prepareForCompile()
break;
case Settings::CompilerSet::CompilationStage::GenerateGimple:
mOutputFile=changeFileExt(mFilename,compilerSet()->compilationProperSuffix());
mArguments += {"-S", QString("-fdump-tree-gimple=%1").arg(changeFileExt(mFilename,"gimple"))};
mArguments += {"-S", QString("-fdump-tree-gimple=%1").arg(localizePath(changeFileExt(mFilename,"gimple")))};
break;
case Settings::CompilerSet::CompilationStage::AssemblingOnly:
mOutputFile=changeFileExt(mFilename,compilerSet()->assemblingSuffix());
Expand Down
2 changes: 2 additions & 0 deletions RedPandaIDE/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ void MainWindow::updateCompileActions(const Editor *e)
ui->actionRun->setEnabled(false);
ui->actionRebuild->setEnabled(false);
ui->actionGenerate_Assembly->setEnabled(false);
ui->actionGenerate_GIMPLE->setEnabled(false);
ui->actionDebug->setEnabled(false);
mProblem_RunAllCases->setEnabled(false);
} else {
Expand Down Expand Up @@ -914,6 +915,7 @@ void MainWindow::updateCompileActions(const Editor *e)
ui->actionRun->setEnabled(canRun);
ui->actionRebuild->setEnabled(canCompile);
ui->actionGenerate_Assembly->setEnabled(canGenerateAssembly);
ui->actionGenerate_GIMPLE->setEnabled(canGenerateAssembly);
ui->actionDebug->setEnabled(canDebug);
mProblem_RunAllCases->setEnabled(canRun && mOJProblemModel->count()>0);
}
Expand Down

0 comments on commit 85bafb6

Please sign in to comment.