From eca9d2ecbf102383874e93cb406f8c606f21df8b Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 8 May 2024 11:48:55 +0800 Subject: [PATCH] - fix: Can't compile / run assembly files in gcc 13/14 . --- NEWS.md | 1 + RedPandaIDE/mainwindow.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 4f94d066..51c77552 100644 --- a/NEWS.md +++ b/NEWS.md @@ -166,6 +166,7 @@ Red Panda C++ Version 2.27 - change: Set "Ctrl+B" as the shortcut for "Toggle Bookmark" - fix: Fail to evaluate expressions if macro can't be expanded. - enhancement: New menu item "Code completion" in "Code" menu. + - fix: Can't compile / run assembly files in gcc 13/14 . Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index e4816d11..7bcb53b1 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -849,7 +849,8 @@ void MainWindow::updateCompileActions(const Editor *e) canDebug = set->canDebug(); break; case FileType::GAS: - if (set->compilerType()==CompilerType::GCC) { + if (set->compilerType()==CompilerType::GCC + || set->compilerType()==CompilerType::GCC_UTF8) { canCompile = true; canRun = canCompile; canDebug = set->canDebug();