Skip to content

Commit be02a53

Browse files
author
jantje
committed
Fix alternative size command
1 parent bd3665d commit be02a53

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

io.sloeber.core/config/pre_processing_platform_default.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ A.software=ARDUINO
33
A.recipe.objcopy.hex.pattern=${A.recipe.objcopy.bin.pattern}
44
A.archive_file=arduino.ar
55
A.archive_file_path=${A.build.path}/${A.archive_file}
6-
JANTJE.alt_size_command="${A.compiler.path}${A.compiler.size.cmd}" --format=avr --mcu=${A.build.mcu} "${A.build.path}/${A.build.project_name}.elf"
6+
SLOEBER.alt_size_command="${A.compiler.path}${A.compiler.size.cmd}" --format=avr --mcu=${A.build.mcu} "${A.build.path}/${A.build.project_name}.elf"
77
A.runtime.ide.version=10812
88
A.build.system.path=${A.referenced.core.path}${DirectoryDelimiter}system
99
A.serial.port=${JANTJE.com_port}

io.sloeber.core/src/io/sloeber/core/api/CompileDescription.java

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
package io.sloeber.core.api;
22

3-
import static io.sloeber.core.common.Common.getOldWayEnvVar;
4-
import static io.sloeber.core.common.Common.makeEnvironmentVar;
5-
import static io.sloeber.core.common.Const.EMPTY;
6-
import static io.sloeber.core.common.Const.ENV_KEY_JANTJE_START;
7-
import static io.sloeber.core.common.Const.ERASE_START;
8-
import static io.sloeber.core.common.Const.RECIPE_SIZE;
9-
import static io.sloeber.core.common.Const.TRUE;
3+
import static io.sloeber.core.common.Common.*;
4+
import static io.sloeber.core.common.Const.*;
105

116
import java.util.HashMap;
127
import java.util.Map;
@@ -38,7 +33,7 @@ public class CompileDescription {
3833
private static final String ENV_KEY_JANTJE_ADDITIONAL_CPP_COMPILE_OPTIONS = ENV_KEY_JANTJE_START
3934
+ "extra.cpp.compile"; //$NON-NLS-1$
4035
private static final String ENV_KEY_JANTJE_WARNING_LEVEL = ENV_KEY_JANTJE_START + "warning_level"; //$NON-NLS-1$
41-
private static final String ENV_KEY_JANTJE_SIZE_COMMAND = ERASE_START + "alt_size_command"; //$NON-NLS-1$
36+
private static final String ENV_KEY_JANTJE_SIZE_COMMAND = "SLOEBER.alt_size_command"; //$NON-NLS-1$
4237
private static final String ENV_KEY_JANTJE_SIZE_SWITCH = ENV_KEY_JANTJE_START + "size.switch"; //$NON-NLS-1$
4338
private static final String ENV_KEY_JANTJE_ASSEMBLY_COMPILE_OPTIONS = ENV_KEY_JANTJE_START + "extra.assembly"; //$NON-NLS-1$
4439
private static final String ENV_KEY_JANTJE_ARCHIVE_COMPILE_OPTIONS = ENV_KEY_JANTJE_START + "extra.archive"; //$NON-NLS-1$

0 commit comments

Comments
 (0)