Skip to content

Commit 03e6e8d

Browse files
unix: build with debug enabled to troubleshoot crashes
1 parent e1c5e09 commit 03e6e8d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/build_lvgl_micropython.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ elif [ "$target" == "unix" -o "$target" == "macos" ]; then
4040
manifest="FROZEN_MANIFEST=/home/user/sources/MicroPythonOS/manifest_unix.py"
4141
fi
4242
# build for desktop
43-
python3 make.py "$target" DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$manifest"
43+
#python3 make.py "$target" DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$manifest"
44+
# LV_CFLAGS are passed to USER_C_MODULES
45+
# STRIP= makes it so that debug symbols are kept
46+
python3 make.py "$target" LV_CFLAGS="-g -O0 -ggdb" STRIP= DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$manifest"
4447
else
4548
echo "invalid target $target"
4649
fi

0 commit comments

Comments
 (0)