Browse Source

Introjucer: Fix for MSVC optimisation levels.

tags/2021-05-28
jules 13 years ago
parent
commit
1f2c81980f
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h

+ 3
- 3
extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h 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");


Loading…
Cancel
Save