fix custom link options parsing (#291)

This commit is contained in:
Cyano Hao 2024-03-19 20:09:47 +08:00 committed by GitHub
parent e6f65acf00
commit 5be546e97f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -590,11 +590,12 @@ QStringList Compiler::getLibraryArguments(FileType fileType)
// Add global compiler linker extras
if (compilerSet()->useCustomLinkParams() && !compilerSet()->customLinkParams().isEmpty()) {
QStringList params = textToLines(compilerSet()->customLinkParams());
if (!params.isEmpty()) {
QMap<QString, QString> macros = devCppMacroVariables();
QStringList params = parseArguments(compilerSet()->customLinkParams(), macros, true);
if (!params.isEmpty()) {
foreach(const QString& param, params)
result << param;
}
}
}
if (mProject) {