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:
@@ -1,11 +1,12 @@
|
||||
CFLAGS += \
|
||||
-D__SAMD51J19A__ \
|
||||
-flto \
|
||||
-mthumb \
|
||||
-mabi=aapcs-linux \
|
||||
-mcpu=cortex-m4 \
|
||||
-mfloat-abi=hard \
|
||||
-mfpu=fpv4-sp-d16 \
|
||||
-nostdlib -nostartfiles \
|
||||
-D__SAMD51J19A__ \
|
||||
-DCFG_TUSB_MCU=OPT_MCU_SAMD51
|
||||
|
||||
CFLAGS += -Wno-error=undef
|
||||
|
||||
Reference in New Issue
Block a user