Skip to content

Commit b36111b

Browse files
projectgusdpgeorge
authored andcommitted
nrf: Revert "nrf/Makefile: Enable LTO by default only on newer gcc.".
This reverts commit 62e0fa0. Reverting as the only linker wrap needed for nrf port was removed in the parent commit. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent 22f1d76 commit b36111b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ports/nrf/Makefile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,7 @@ CFLAGS_MCU_m4 = $(CFLAGS_CORTEX_M) -mtune=cortex-m4 -mcpu=cortex-m4 -mfpu=fpv4-s
129129

130130
CFLAGS_MCU_m0 = $(CFLAGS_CORTEX_M) -fshort-enums -mtune=cortex-m0 -mcpu=cortex-m0 -mfloat-abi=soft
131131

132-
# linker wrap does not work with lto on older gcc/binutils: https://sourceware.org/bugzilla/show_bug.cgi?id=24406
133-
GCC_VERSION = $(shell arm-none-eabi-gcc -dumpversion)
134-
GCC_MAJOR_VERS = $(word 1,$(subst ., ,$(GCC_VERSION)))
135-
ifeq ($(shell test $(GCC_MAJOR_VERS) -ge 10; echo $$?),0)
136132
LTO ?= 1
137-
else
138-
LTO ?= 0
139-
endif
140133

141134
ifeq ($(LTO),1)
142135
CFLAGS += -flto

0 commit comments

Comments
 (0)