From abfc3abe2c80dfca92733f84276253e560dfec25 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 7 Jan 2026 17:59:30 +0100 Subject: [PATCH] Fix macos build Flagged in https://github.com/MicroPythonOS/MicroPythonOS/pull/18 --- scripts/build_mpos.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build_mpos.sh b/scripts/build_mpos.sh index eff936f9..a0218bfc 100755 --- a/scripts/build_mpos.sh +++ b/scripts/build_mpos.sh @@ -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