Skip to content

Commit 5a545cf

Browse files
author
jan
committed
ignore compiler.optimization_flags={compiler.optimization_flags} in txt
1 parent 258514d commit 5a545cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

io.sloeber.core/src/io/sloeber/core/txt/WorkAround.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
public class WorkAround {
4646
// Each time this class is touched consider changing the String below to enforce
4747
// updates
48-
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V3.00.test 23 ";
48+
private static final String FIRST_SLOEBER_WORKAROUND_LINE = "#Sloeber created TXT file V3.00.test 24 ";
4949

5050
private static Map<String, String> USB_replacers;
5151

@@ -282,6 +282,9 @@ private static String platformApplyCustomWorkArounds(String inPlatformTxt) {
282282
platformTXT = platformTXT.replace(" -DBOARD_NAME=\"{build.board}\"", " \"-DBOARD_NAME=\\\"{build.board}\\\"\"");
283283
platformTXT = platformTXT.replace(" -DVARIANT_H=\"{build.variant_h}\"",
284284
" \"-DVARIANT_H=\\\"{build.variant_h}\\\"\"");
285+
//Why would you do this?
286+
platformTXT = platformTXT.replace("compiler.optimization_flags={compiler.optimization_flags}","");
287+
285288

286289
// for ESP32 remove the build options fix for arduino ide #1390
287290
platformTXT = platformTXT.replace(" \"@{build.opt.path}\" ", " ");

0 commit comments

Comments
 (0)