8000 nrf: Compile nlr objects with -fno-lto flag · andrewleech/micropython@ea00717 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea00717

Browse files
glennrubdpgeorge
authored andcommitted
nrf: Compile nlr objects with -fno-lto flag
To prevent over-optimizations of nlr and nlrthumb when -flto is used the flag -fno-lto is set on these modules during compilation.
1 parent 14d257c commit ea00717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ports/nrf/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,5 +348,7 @@ CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
348348
CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
349349
endif
350350

351+
$(PY_BUILD)/nlr%.o: CFLAGS += -Os -fno-lto
352+
351353
include ../../py/mkrules.mk
352354

0 commit comments

Comments
 (0)
0