From 78f00febbcbc671186509b7b4c0ded56690a4b66 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 24 Sep 2023 08:55:10 +0800 Subject: [PATCH] - fix: Custom compile options is not used when retrieve macros defined by the compiler. --- NEWS.md | 1 + RedPandaIDE/settings.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index de422a32..a6c764ca 100644 --- a/NEWS.md +++ b/NEWS.md @@ -7,6 +7,7 @@ Red Panda C++ Version 2.25 - enhancement: ANSI escape sequences Support in windows 10/11 ( from cyano.CN ) - enhancement: Option "Enable ANSI escape sequences Support" in Settings -> Executor - change: Use freetype as the fontengine in windows ( from cyano.CN ) + - fix: Custom compile options is not used when retrieve macros defined by the compiler. Red Panda C++ Version 2.24 diff --git a/RedPandaIDE/settings.cpp b/RedPandaIDE/settings.cpp index 9477ab51..22e51ad1 100644 --- a/RedPandaIDE/settings.cpp +++ b/RedPandaIDE/settings.cpp @@ -2379,7 +2379,10 @@ QStringList Settings::CompilerSet::defines(bool isCpp) { } #endif - + if (mUseCustomCompileParams) { + QStringList extraParams = splitProcessCommand(mCustomCompileParams); + arguments.append(extraParams); + } arguments.append(NULL_FILE); QFileInfo ccompiler(mCCompiler);