Skip to content

Commit 5cb3482

Browse files
author
jan
committed
Use script to start size calculation #1714
Use the same way it is done in windows.
1 parent 524b13c commit 5cb3482

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,7 @@ public String getCustomSizeCommand() {
221221
public String getEnvValue() {
222222
switch (this) {
223223
case ARDUINO_WAY:
224-
if (isWindows) {
225-
return Common.makeEnvironmentVar(ENV_KEY_BUILD_PATH) + SLACH + ARDUINO_SIZE;
226-
}
227-
return "${sloeber.size_command.awk}"; //$NON-NLS-1$
224+
return Common.makeEnvironmentVar(ENV_KEY_BUILD_PATH) + SLACH + ARDUINO_SIZE;
228225
case AVR_ALTERNATIVE:
229226
return "${sloeber.size_command.avr}"; //$NON-NLS-1$
230227
case RAW_RESULT:

io.sloeber.core/src/io/sloeber/core/builder/SloeberBuilderExtension.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ public SloeberBuilderExtension() {
130130

131131
@SuppressWarnings("nls")
132132
private static void generateArduinoSizeCommandFile(IAutoBuildConfigurationDescription autoBuildConfData) {
133-
if(!isWindows) {
134-
return;
135-
}
136133
IFile sizeCommandIFile = autoBuildConfData.getBuildFolder().getFile(ARDUINO_SIZE );
137134
SloeberConfiguration confDesc = SloeberConfiguration.getFromAutoBuildConfDesc(autoBuildConfData);
138135

0 commit comments

Comments
 (0)