Skip to content

Commit c99ab12

Browse files
committed
Add "runtime." prefix to "build_properties_custom.*" preferences
1 parent 9c74188 commit c99ab12

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arduino-core/src/cc/arduino/Compiler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private void callArduinoBuilder(TargetBoard board, TargetPlatform platform, Targ
228228
commandLine.addArgument("-warnings=" + PreferencesData.get("compiler.warning_level"), false);
229229

230230
PreferencesData.getMap()
231-
.subTree("build_properties_custom")
231+
.subTree("runtime.build_properties_custom")
232232
.entrySet()
233233
.stream()
234234
.forEach(kv -> commandLine.addArgument("-prefs=\"" + kv.getKey() + "=" + kv.getValue() + "\"", false));

arduino-core/src/processing/app/helpers/CommandlineParser.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private void processPrefArgument(String arg) {
277277
BaseNoGui.showError(null, I18n.format(tr("{0}: Invalid argument to --pref, should be of the form \"pref=value\""), arg), 3);
278278

279279
PreferencesData.set(split[0], split[1]);
280-
PreferencesData.set("build_properties_custom." + split[0], split[1]);
280+
PreferencesData.set("runtime.build_properties_custom." + split[0], split[1]);
281281
}
282282

283283
public boolean isDoVerboseBuild() {

0 commit comments

Comments
 (0)