Skip to content

Commit b912029

Browse files
authored
Merge pull request adafruit#982 from arturo182/nrf_makefile
nrf: Save some flash bytes by using extra compile flags
2 parents 05a088b + da491ec commit b912029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nrf/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ CFLAGS += -mthumb -mabi=aapcs -fsingle-precision-constant -Wdouble-promotion
6161
CFLAGS += -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
6262
CFLAGS += $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD)
6363
CFLAGS += -fno-strict-aliasing
64-
CFLAGS += -fstack-usage
64+
CFLAGS += -fstack-usage -fno-builtin -fshort-enums
6565
CFLAGS += -fdata-sections -ffunction-sections
6666
CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>'
6767
CFLAGS += -D__START=main

0 commit comments

Comments
 (0)