nrf/Makefile: Disable ROM text compression when compiling for debug.

When compiling for debug (-O0) the .text segment cannot fit the flash
region when MICROPY_ROM_TEXT_COMPRESSION=1, because the compiler does not
optimise away the large if-else chain used to select the correct compressed
string.

This commit enforces MICROPY_ROM_TEXT_COMPRESSION=0 when compiling for
debug (DEBUG=1).
v1.13-wasp-os
Glenn Ruben Bakke 2020-06-27 13:07:39 +02:00 committed by Damien George
parent f22f7b285e
commit c2317a3a8d
1 changed files with 2 additions and 0 deletions

View File

@ -39,7 +39,9 @@ endif
QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h
# MicroPython feature configurations
ifeq ($(DEBUG), 0)
MICROPY_ROM_TEXT_COMPRESSION ?= 1
endif
# include py core make definitions
include ../../py/py.mk