Browse Source

Projucer: Fixed a bug when setting the Makefile exporter architecture to <None>

tags/2021-05-28
ed 6 years ago
parent
commit
49359dfe34
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Make.h

+ 11
- 3
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Make.h View File

@@ -48,8 +48,8 @@ protected:
addGCCOptimisationProperty (props);
props.add (new ChoicePropertyComponent (architectureTypeValue, "Architecture",
{ "<None>", "Native", "32-bit (-m32)", "64-bit (-m64)", "ARM v6", "ARM v7" },
{ { String() } , "-march=native", "-m32", "-m64", "-march=armv6", "-march=armv7" }),
{ "<None>", "Native", "32-bit (-m32)", "64-bit (-m64)", "ARM v6", "ARM v7" },
{ "none" , "-march=native", "-m32", "-m64", "-march=armv6", "-march=armv7" }),
"Specifies the 32/64-bit architecture to use.");
}
@@ -70,7 +70,15 @@ protected:
return "${JUCE_ARCH_LABEL}";
}
String getArchitectureTypeString() const { return architectureTypeValue.get(); }
String getArchitectureTypeString() const
{
auto archString = architectureTypeValue.get();
if (archString == "none")
return {};
return archString;
}
//==============================================================================
ValueWithDefault architectureTypeValue;


Loading…
Cancel
Save