1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Allow compiler and linker flags to be set per-configuration

This commit is contained in:
reuk 2022-09-27 16:36:50 +01:00
parent cca01e7c96
commit 15d9d35454
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
7 changed files with 61 additions and 61 deletions

View file

@ -646,7 +646,7 @@ private:
for (auto& recommended : config.getRecommendedCompilerWarningFlags().common)
result.add (recommended);
auto extra = replacePreprocessorTokens (config, getExtraCompilerFlagsString()).trim();
auto extra = replacePreprocessorTokens (config, config.getAllCompilerFlagsString()).trim();
if (extra.isNotEmpty())
result.add (extra);
@ -717,7 +717,7 @@ private:
if (config.isLinkTimeOptimisationEnabled())
result.add ("-flto");
auto extraFlags = getExtraLinkerFlagsString().trim();
const auto extraFlags = config.getAllLinkerFlagsString().trim();
if (extraFlags.isNotEmpty())
result.add (replacePreprocessorTokens (config, extraFlags));