mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
Merge pull request #4406 from gohai/arm-export-memory
Ignore memory options when exporting for ARM
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user