Fix macos build

Flagged in https://github.com/MicroPythonOS/MicroPythonOS/pull/18
This commit is contained in:
Thomas Farstrike
2026-01-07 17:59:30 +01:00
parent 81f9a23691
commit abfc3abe2c
+2 -2
View File
@@ -124,7 +124,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
if [ "$target" == "macOS" ]; then
echo "homebrew install rlottie fails so it runs into: fatal error: 'rlottie_capi.h' file not found on macos"
sed -i 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+1/#define MICROPY_RLOTTIE 0/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
sed -i.backup 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+1/#define MICROPY_RLOTTIE 0/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
fi
# LV_CFLAGS are passed to USER_C_MODULES (compiler flags only, no linker flags)
@@ -135,7 +135,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
popd
if [ "$target" == "macOS" ]; then
sed -i 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+0/#define MICROPY_RLOTTIE 1/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
sed -i.backup 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+0/#define MICROPY_RLOTTIE 1/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
fi
# Restore @micropython.viper decorator after build