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

Projucer: Added an "add recommended warning flags" checkbox to the exporters

This commit is contained in:
Tom Poole 2019-06-11 16:44:29 +01:00
parent d4b7cceb32
commit 1fd9c2f282
7 changed files with 76 additions and 9 deletions

View file

@ -631,6 +631,7 @@ protected:
void createConfigProperties (PropertyListBuilder& props) override
{
addXcodePluginInstallPathProperties (props);
addRecommendedLLVMCompilerWarningsProperty (props);
addGCCOptimisationProperty (props);
if (iOS)
@ -1244,10 +1245,11 @@ public:
if (config.isFastMathEnabled())
s.set ("GCC_FAST_MATH", "YES");
auto extraFlags = owner.replacePreprocessorTokens (config, owner.getExtraCompilerFlagsString()).trim();
auto flags = (owner.replacePreprocessorTokens (config, owner.getExtraCompilerFlagsString())
+ " " + config.getRecommendedCompilerWarningFlags().joinIntoString (" ")).trim();
if (extraFlags.isNotEmpty())
s.set ("OTHER_CPLUSPLUSFLAGS", extraFlags.quoted());
if (flags.isNotEmpty())
s.set ("OTHER_CPLUSPLUSFLAGS", flags.quoted());
auto installPath = getInstallPathForConfiguration (config);