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);