mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Projucer: Fixed a bug when setting the Makefile exporter architecture to <None>
This commit is contained in:
parent
62958a79ea
commit
49359dfe34
1 changed files with 11 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue