Skip to content

Commit 3c50918

Browse files
authored
Merge pull request #4333 from dhalbert/compile-options-shrink-builds
Shrink the smallest builds with compile options
2 parents c68073e + 4cf6579 commit 3c50918

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

ports/atmel-samd/boards/meowmeow/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ CIRCUITPY_COUNTIO = 0
1414
CIRCUITPY_RTC = 0
1515

1616
SUPEROPT_GC = 0
17+
SUPEROPT_VM = 0

ports/atmel-samd/boards/pewpew_m4/mpconfigboard.mk

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CIRCUITPY_ROTARYIO = 0
2525
CIRCUITPY_RTC = 0
2626
CIRCUITPY_SAMD = 0
2727
CIRCUITPY_TOUCHIO = 0
28+
CIRCUIPTY_USB_CDC = 0
2829
CIRCUITPY_USB_HID = 0
2930
CIRCUITPY_USB_MIDI = 0
3031
CIRCUITPY_VECTORIO = 0
@@ -40,12 +41,5 @@ CIRCUITPY_STAGE = 1
4041
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/pewpew_m4
4142
CIRCUITPY_DISPLAY_FONT = $(TOP)/ports/atmel-samd/boards/ugame10/brutalist-6.bdf
4243

43-
# Tweak inlining depending on language.
44-
ifeq ($(TRANSLATION), zh_Latn_pinyin)
45-
RELEASE_NEEDS_CLEAN_BUILD = 1
46-
CFLAGS_INLINE_LIMIT = 45
47-
else
48-
CFLAGS_INLINE_LIMIT = 70
49-
endif
5044
# Override optimization to keep binary small
5145
OPTIMIZATION_FLAGS = -Os

ports/atmel-samd/boards/trinket_m0/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ CIRCUITPY_FULL_BUILD = 0
1212

1313
SUPEROPT_GC = 0
1414
SUPEROPT_VM = 0
15+
16+
# On this particular board, these save about 180 bytes. On other boards, they may -increase- space used.
17+
CFLAGS_BOARD = -fweb -frename-registers

0 commit comments

Comments
 (0)