1
0
Fork 0

Add LTO and unused data/functions optimisations suggested by Arti

This commit is contained in:
Silver Kits 2016-10-21 13:40:53 +03:00
parent de62693b6d
commit e6888bd251
1 changed files with 6 additions and 1 deletions

View File

@ -43,13 +43,18 @@ CFLAGS = -Wall \
-Werror \
-Wfatal-errors \
-Os \
-flto \
-fdata-sections \
-ffunction-sections \
-mmcu=$(BOARD) \
-DF_CPU=16000000UL \
-DGIT_DESCR=\"$(shell git describe --abbrev=6 --dirty --always --tags --long)\" \
-std=c11
# Linker flags
LDFLAGS = -mmcu=$(BOARD)
LDFLAGS = -mmcu=$(BOARD) \
-flto \
-Wl,-gc-sections
OBJCOPYARGS = -O ihex \
-R .eeprom