diff options
| author | Glenn Ruben Bakke | 2018-07-03 19:09:28 +0200 |
|---|---|---|
| committer | Damien George | 2018-07-18 17:12:26 +1000 |
| commit | ea00717a57b4ac8e9b661eafad6bb7ba7b45bbed (patch) | |
| tree | 470e4263c4af94edf29e750814c9ee05277b14c8 | |
| parent | 14d257c66bdbb7af6f085eacda9b3a01b6fd3115 (diff) | |
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.
| -rw-r--r-- | ports/nrf/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/nrf/Makefile b/ports/nrf/Makefile index 3705409bc..04fb2ff98 100644 --- a/ports/nrf/Makefile +++ b/ports/nrf/Makefile @@ -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 |
