summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-05-14 23:13:59 +1000
committerDamien George <damien.p.george@gmail.com>2020-05-15 13:39:12 +1000
commiteb5e9c00f8119e8a69dea7590dbbe25a67a38e38 (patch)
tree31afdac6067490a3f3885ab1e900bb50d0cb233b
parent7dffbfd22a128d88cd4cd7f23ebf24c46ae8791f (diff)
nrf/Makefile: Don't use -fno-builtin for Cortex-M0 builds.
So that error string compression is optimised correctly (it needs strcmp to be optimised away by the compiler).
-rw-r--r--ports/nrf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile
index b4d6f5929..e93c7041a 100644
--- a/ports/nrf/Makefile
+++ b/ports/nrf/Makefile
@@ -99,7 +99,7 @@ CFLAGS_MCU_m33 = $(CFLAGS_CORTEX_M) -mcpu=cortex-m33 -march=armv8-m.main+dsp -mc
CFLAGS_MCU_m4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard
-CFLAGS_MCU_m0 = $(CFLAGS_CORTEX_M) -fshort-enums -mtune=cortex-m0 -mcpu=cortex-m0 -mfloat-abi=soft -fno-builtin
+CFLAGS_MCU_m0 = $(CFLAGS_CORTEX_M) -fshort-enums -mtune=cortex-m0 -mcpu=cortex-m0 -mfloat-abi=soft
LTO ?= 1
ifeq ($(LTO),1)