mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Introjucer: Fix for MSVC optimisation levels.
This commit is contained in:
parent
5a69cc6ce2
commit
1f2c81980f
1 changed files with 3 additions and 3 deletions
|
|
@ -1153,11 +1153,11 @@ protected:
|
|||
XmlElement* cl = group->createNewChildElement ("ClCompile");
|
||||
|
||||
const int optimiseLevel = config.getOptimisationLevelInt();
|
||||
cl->createNewChildElement ("Optimization")->addTextElement (optimiseLevel == 0 ? "Disabled"
|
||||
: optimiseLevel == 1 ? "MinSpace"
|
||||
cl->createNewChildElement ("Optimization")->addTextElement (optimiseLevel <= 1 ? "Disabled"
|
||||
: optimiseLevel == 2 ? "MinSpace"
|
||||
: "MaxSpeed");
|
||||
|
||||
if (isDebug && optimiseLevel == 0)
|
||||
if (isDebug && optimiseLevel <= 1)
|
||||
cl->createNewChildElement ("DebugInformationFormat")->addTextElement (is64Bit (config) ? "ProgramDatabase"
|
||||
: "EditAndContinue");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue