Merge pull request #4406 from gohai/arm-export-memory

Ignore memory options when exporting for ARM
This commit is contained in:
Ben Fry
2016-05-08 15:09:32 -04:00

View File

@@ -1123,7 +1123,11 @@ public class JavaBuild {
/// figure out run options for the VM
List<String> runOptions = new ArrayList<String>();
if (Preferences.getBoolean("run.options.memory")) {
// set memory options, except for ARM where we're more memory-constrained compared
// to the machine the user might be building the sketch on
if (Preferences.getBoolean("run.options.memory") &&
!exportVariant.equals("armv6hf")) {
runOptions.add("-Xms" + Preferences.get("run.options.memory.initial") + "m");
runOptions.add("-Xmx" + Preferences.get("run.options.memory.maximum") + "m");
}