From aef8b123f27177246529fcaf0f8b18e6a23715f9 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Tue, 29 Oct 2024 11:07:15 +0000 Subject: [PATCH] avoid adding optimisations on boards where we don't have space --- boards/ESP8266_BOARD.py | 1 + boards/PIXLJS.py | 1 + 2 files changed, 2 insertions(+) diff --git a/boards/ESP8266_BOARD.py b/boards/ESP8266_BOARD.py index c3484eeaa..72f6c7be4 100644 --- a/boards/ESP8266_BOARD.py +++ b/boards/ESP8266_BOARD.py @@ -31,6 +31,7 @@ ], 'makefile' : [ 'DEFINES+=-DSAVE_ON_FLASH_MATH', + 'DEFINES+=-DESPR_NO_REGEX_OPTIMISE', # save some storage space 'BLACKLIST=boards/ESP8266.blocklist', # force some stuff to be removed to save space 'USE_DEBUGGER=0', # We can't use debugger as RTOS needs jsiIdle to keep exiting ] diff --git a/boards/PIXLJS.py b/boards/PIXLJS.py index 6920f5d91..74cf86644 100644 --- a/boards/PIXLJS.py +++ b/boards/PIXLJS.py @@ -61,6 +61,7 @@ 'DEFINES+=-DESPR_PACKED_SYMPTR', # Pack builtin symbols' offset into pointer to save 2 bytes/symbol 'DEFINES+=-DESPR_LIMIT_DATE_RANGE', # limits the acceptable range for Date years (saves a few hundred bytes) 'DEFINES+=-DESPR_NO_BLUETOOTH_MESSAGES', # don't include text versions of Bluetooth error messages (just the error number) + 'DEFINES+=-DESPR_NO_REGEX_OPTIMISE', # save some storage space 'INCLUDE += -I$(ROOT)/libs/pixljs', 'WRAPPERSOURCES += libs/pixljs/jswrap_pixljs.c', 'JSMODULESOURCES += libs/js/graphical_menu.min.js'