Ignore SMALL when using IAR compiler
This commit is contained in:
parent
eba64bdc5e
commit
8e1e12dfd3
|
@ -101,9 +101,11 @@ CFLAGS += $(CFLAGSNO)
|
|||
|
||||
### These flags can reduce the code size and RAM usage with up to 10%
|
||||
ifdef SMALL
|
||||
ifndef IAR
|
||||
CFLAGS += -ffunction-sections
|
||||
# CFLAGS += -fdata-sections
|
||||
LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__
|
||||
endif # !IAR
|
||||
endif # SMALL
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue