diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-07-02 14:33:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-02 14:33:47 -0700 |
| commit | b91202969a89a62e6b9cec86799ae4a64ad2694c (patch) | |
| tree | c85a441d3f86a43c8a21eaa071fa41d0f5a0df42 | |
| parent | 05a088b3696d786f85b765d16879bf47a280f64a (diff) | |
| parent | da491ec96112646c1dcd83940d0ab81839b8caa2 (diff) | |
Merge pull request #982 from arturo182/nrf_makefile
nrf: Save some flash bytes by using extra compile flags
| -rw-r--r-- | ports/nrf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 21b2f39a6..6ba9ef359 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -61,7 +61,7 @@ CFLAGS += -mthumb -mabi=aapcs -fsingle-precision-constant -Wdouble-promotion CFLAGS += -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard CFLAGS += $(INC) -Wall -Werror -ansi -std=gnu99 -nostdlib $(COPT) $(NRF_DEFINES) $(CFLAGS_MOD) CFLAGS += -fno-strict-aliasing -CFLAGS += -fstack-usage +CFLAGS += -fstack-usage -fno-builtin -fshort-enums CFLAGS += -fdata-sections -ffunction-sections CFLAGS += -DNRF5_HAL_H='<$(MCU_VARIANT)_hal.h>' CFLAGS += -D__START=main |
