Skip to content

Commit da491ec

Browse files
committed
nrf: Save some flash bytes by using extra compile flags
Both of these are used in the atsamd port as well.
1 parent 923ef3d commit da491ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nrf/Makefile

Lines changed: 1 addition & 1 deletion
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)