Ignore SMALL when using IAR compiler

This commit is contained in:
Niclas Finne 2011-12-15 15:17:09 +01:00
parent eba64bdc5e
commit 8e1e12dfd3

View file

@ -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