Skip to content

Commit abfc3ab

Browse files
Fix macos build
Flagged in MicroPythonOS#18
1 parent 81f9a23 commit abfc3ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_mpos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
124124

125125
if [ "$target" == "macOS" ]; then
126126
echo "homebrew install rlottie fails so it runs into: fatal error: 'rlottie_capi.h' file not found on macos"
127-
sed -i 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+1/#define MICROPY_RLOTTIE 0/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
127+
sed -i.backup 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+1/#define MICROPY_RLOTTIE 0/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
128128
fi
129129

130130
# 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
135135
popd
136136

137137
if [ "$target" == "macOS" ]; then
138-
sed -i 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+0/#define MICROPY_RLOTTIE 1/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
138+
sed -i.backup 's/#define[[:space:]]\+MICROPY_RLOTTIE[[:space:]]\+0/#define MICROPY_RLOTTIE 1/' "$codebasedir"/lvgl_micropython/lib/lv_conf.h
139139
fi
140140

141141
# Restore @micropython.viper decorator after build

0 commit comments

Comments
 (0)