diff --git a/RedPandaIDE/compiler/filecompiler.cpp b/RedPandaIDE/compiler/filecompiler.cpp index 32c534712..83ef4adf2 100644 --- a/RedPandaIDE/compiler/filecompiler.cpp +++ b/RedPandaIDE/compiler/filecompiler.cpp @@ -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()); diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 108cd6792..b4d9c2878 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -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 { @@ -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); }