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.
This commit is contained in:
Glenn Ruben Bakke 2018-07-03 19:09:28 +02:00 committed by Damien George
parent 14d257c66b
commit ea00717a57

View File

@ -348,5 +348,7 @@ CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
CFLAGS += -DMICROPY_MODULE_FROZEN_MPY CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
endif endif
$(PY_BUILD)/nlr%.o: CFLAGS += -Os -fno-lto
include ../../py/mkrules.mk include ../../py/mkrules.mk