move -flto to board.mk

current board that doesn work with flto is spresense and mimxrt10xx (due
to xip image_vector_table is optimized out).
This commit is contained in:
hathach
2019-11-20 16:06:40 +07:00
parent 1aa3f085cb
commit f638594536
42 changed files with 238 additions and 205 deletions

View File

@@ -85,12 +85,7 @@ CFLAGS += \
ifeq ($(DEBUG), 1)
CFLAGS += -Og -ggdb
else
ifneq ($(BOARD),spresense)
#CFLAGS += -flto -Os
CFLAGS += -Os
else
CFLAGS += -Os
endif
CFLAGS += -Os
endif
# TUSB Logging option