We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 821ae33 + 22a72a7 commit 79b45f3Copy full SHA for 79b45f3
1 file changed
java/src/processing/mode/java/JavaBuild.java
@@ -1123,7 +1123,11 @@ protected boolean exportApplication(File destFolder,
1123
/// figure out run options for the VM
1124
1125
List<String> runOptions = new ArrayList<String>();
1126
- if (Preferences.getBoolean("run.options.memory")) {
+
1127
+ // set memory options, except for ARM where we're more memory-constrained compared
1128
+ // to the machine the user might be building the sketch on
1129
+ if (Preferences.getBoolean("run.options.memory") &&
1130
+ !exportVariant.equals("armv6hf")) {
1131
runOptions.add("-Xms" + Preferences.get("run.options.memory.initial") + "m");
1132
runOptions.add("-Xmx" + Preferences.get("run.options.memory.maximum") + "m");
1133
}
0 commit comments