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:
parent
cca01e7c96
commit
15d9d35454
7 changed files with 61 additions and 61 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue