- fix: Custom compile options is not used when retrieve macros defined by the compiler.

This commit is contained in:
Roy Qu 2023-09-24 08:55:10 +08:00
parent 33d4327443
commit 78f00febbc
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

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