1
0
Fork 0
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:
jules 2012-07-13 19:35:46 +01:00
parent 5a69cc6ce2
commit 1f2c81980f

View file

@ -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");