8000 Update WASM port, enable some more flags for memory debugging · lvgl/lv_micropython@f77644e · GitHub
[go: up one dir, main page]

Skip to content

Commit f77644e

Browse files
committed
Update WASM port, enable some more flags for memory debugging
1 parent 418b5d0 commit f77644e

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

ports/webassembly/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CFLAGS += -std=gnu99 -Wall -Wno-error -Wdouble-promotion -Wfloat-conversion
3131
CFLAGS += -DNDEBUG
3232
ifneq ($(EM_DEBUG),)
3333
CFLAGS += -g3 -O0
34-
LDFLAGS += -g3 -O0
34+
LDFLAGS += -g3 -O0 -sSAFE_HEAP=1 -sASSERTIONS=2
3535
else
3636
CFLAGS += -Os
3737
endif
@@ -94,6 +94,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
9494
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
9595

9696
JSFLAGS += -s ASYNCIFY
97+
JSFLAGS += -s ASYNCIFY_STACK_SIZE=81920
9798
JSFLAGS += -s 'ASYNCIFY_IMPORTS=["mp_js_sleep_with_intr"]' -s WASM=1 -s USE_SDL=2 -s ALLOW_MEMORY_GROWTH=1
9899
JSFLAGS += -s EXPORTED_FUNCTIONS="['_mp_js_init', '_mp_js_init_repl', '_mp_js_do_str', '_mp_js_process_char', '_mp_hal_get_interrupt_char', '_mp_sched_keyboard_interrupt', '_mp_handle_pending']"
99100
JSFLAGS += -s EXPORTED_RUNTIME_METHODS="['ccall', 'cwrap']"

ports/webassembly/mpconfigport.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,6 @@
163163

164164
#define MP_SSIZE_MAX (0x7fffffff)
165165

166-
#if MICROPY_PY_LVGL
167-
#ifndef MICROPY_INCLUDED_PY_MPSTATE_H
168-
#define MICROPY_INCLUDED_PY_MPSTATE_H
169-
#include "lib/lv_bindings/lvgl/src/misc/lv_gc.h"
170-
#undef MICROPY_INCLUDED_PY_MPSTATE_H
171-
#else
172-
#include "lib/lv_bindings/lvgl/src/misc/lv_gc.h"
173-
#endif
174-
#endif
175-
176166
// #define MICROPY_EVENT_POLL_HOOK {ets_event_poll();}
177167
#if MICROPY_PY_THREAD
178168
#define MICROPY_EVENT_POLL_HOOK \

0 commit comments

Comments
 (0)
0