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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user