File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ CFLAGS_CORTEX_M0 = \
107107 -ffunction-sections \
108108 -fdata-sections \
109109 -fshort-enums \
110+ -flto \
110111 -D ARM_MATH_CM0PLUS=true \
111112 -DSYSTICK_MODE \
112113 -DEXTINT_CALLBACK_MODE=true \
@@ -120,7 +121,7 @@ CFLAGS_CORTEX_M0 = \
120121 -DTC_ASYNC=true \
121122 -DUSB_DEVICE_LPM_SUPPORT \
122123 --param max-inline-insns-single=500
123- CFLAGS = $(INC ) -Wall -Werror -std=gnu11 -nostdlib $(CFLAGS_CORTEX_M0 ) $(COPT ) $( BOARD_CFLAGS )
124+ CFLAGS = $(INC ) -Wall -Werror -std=gnu11 -nostdlib $(CFLAGS_CORTEX_M0 ) $(COPT )
124125
125126# Debugging/Optimization
126127# TODO(tannewt): Figure out what NDEBUG does. Adding it to the debug build
Original file line number Diff line number Diff line change @@ -5,5 +5,3 @@ USB_PID = 0x824D
55FLASH_IMPL = internal_flash.c
66
77CHIP_VARIANT = SAMD21G18A
8-
9- BOARD_CFLAGS = -flto
Original file line number Diff line number Diff line change @@ -5,5 +5,3 @@ USB_PID = 0x8015
55FLASH_IMPL = internal_flash.c
66
77CHIP_VARIANT = SAMD21G18A
8-
9- BOARD_CFLAGS = -flto
Original file line number Diff line number Diff line change @@ -5,5 +5,3 @@ USB_PID = 0x8015
55FLASH_IMPL = internal_flash.c
66
77CHIP_VARIANT = SAMD21G18A
8-
9- BOARD_CFLAGS = -flto
Original file line number Diff line number Diff line change @@ -5,5 +5,3 @@ USB_PID = 0x8015
55FLASH_IMPL = internal_flash.c
66
77CHIP_VARIANT = SAMD21E18A
8-
9- BOARD_CFLAGS = -flto
Original file line number Diff line number Diff line change @@ -5,5 +5,3 @@ USB_PID = 0x8015
55FLASH_IMPL = internal_flash.c
66
77CHIP_VARIANT = SAMD21E18A
8-
9- BOARD_CFLAGS = -flto
You can’t perform that action at this time.
0 commit comments