Skip to content

Commit 79b45f3

Browse files
committed
Merge pull request processing#4406 from gohai/arm-export-memory
Ignore memory options when exporting for ARM
2 parents 821ae33 + 22a72a7 commit 79b45f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

java/src/processing/mode/java/JavaBuild.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,11 @@ protected boolean exportApplication(File destFolder,
11231123
/// figure out run options for the VM
11241124

11251125
List<String> runOptions = new ArrayList<String>();
1126-
if (Preferences.getBoolean("run.options.memory")) {
1126+
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")) {
11271131
runOptions.add("-Xms" + Preferences.get("run.options.memory.initial") + "m");
11281132
runOptions.add("-Xmx" + Preferences.get("run.options.memory.maximum") + "m");
11291133
}

0 commit comments

Comments
 (0)