shrink SAMD21 builds by a few hundred bytes

This commit is contained in:
Dan Halbert 2023-03-28 16:05:17 -04:00
parent d289329344
commit 11082435f1
1 changed files with 2 additions and 2 deletions

View File

@ -116,12 +116,12 @@ else
# -finline-limit=80 or so is similar to not having it on.
# There is no simple default value, though.
ifeq ($(SHRINK_BUILD), 1)
CFLAGS += -finline-limit=45
CFLAGS += -finline-limit=45 --param max-inline-insns-auto=110
endif
# We used to do this but it seems to not reduce space any more, at least in gcc 11.
# Leave it here, commented out, just for reference.
# --param inline-unit-growth=15 --param max-inline-insns-auto=20
# --param inline-unit-growth=15
ifdef CFLAGS_BOARD
CFLAGS += $(CFLAGS_BOARD)