- change: Set optimization level to -Og for Debug compiler settings by default.

This commit is contained in:
Roy Qu 2023-03-01 21:45:17 +08:00
parent 7943801f91
commit 683331e848
3 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Red Panda C++ Version 2.16
- enhancement: Add cfi directives for asm syntaxer in linux.
- change: Editor option "Scroll past end of line" default to false.
- emhancement: Improve display of disassembled codes in the cpu info dialog.
- change: Set optimization level to -Og for Debug compiler settings by default.
Red Panda C++ Version 2.15

View File

@ -2728,6 +2728,7 @@ static void setReleaseOptions(Settings::PCompilerSet pSet) {
}
static void setDebugOptions(Settings::PCompilerSet pSet, bool enableAsan = false) {
pSet->setCompileOption(CC_CMD_OPT_OPTIMIZE,"g");
pSet->setCompileOption(CC_CMD_OPT_DEBUG_INFO, COMPILER_OPTION_ON);
pSet->setCompileOption(CC_CMD_OPT_WARNING_ALL, COMPILER_OPTION_ON);
//pSet->setCompileOption(CC_CMD_OPT_WARNING_EXTRA, COMPILER_OPTION_ON);

View File

@ -7,7 +7,9 @@ LanguageAsmGenerationWidget::LanguageAsmGenerationWidget(const QString &name, co
ui(new Ui::LanguageAsmGenerationWidget)
{
ui->setupUi(this);
#ifndef Q_OS_WIN
ui->chkNoSEHDirectives->setText(tr("Don't generate cli directives."));
#endif
#if !defined(ARCH_X86_64) && !defined(ARCH_X86)
ui->grpX86Syntax->setVisible(false);
#endif