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.
pull/3137/merge
Glenn Ruben Bakke 2018-07-03 19:09:28 +02:00 zatwierdzone przez Damien George
rodzic 14d257c66b
commit ea00717a57
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

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