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:
parent
d4b7cceb32
commit
1fd9c2f282
7 changed files with 76 additions and 9 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue