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).
This commit is contained in:
parent
f22f7b285e
commit
c2317a3a8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user