Try to fix macOS build

It has a weird "sed" program that doesn't allow -i or something.
This commit is contained in:
Thomas Farstrike
2025-12-08 12:09:39 +01:00
parent 6f3fe0af9f
commit ede56750da
+2 -2
View File
@@ -106,7 +106,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
# (cross-compiler doesn't support Viper native code emitter)
echo "Temporarily commenting out @micropython.viper decorator for Unix/macOS build..."
stream_wav_file="$codebasedir"/internal_filesystem/lib/mpos/audio/stream_wav.py
sed -i 's/^@micropython\.viper$/#@micropython.viper/' "$stream_wav_file"
sed -i.backup 's/^@micropython\.viper$/#@micropython.viper/' "$stream_wav_file"
# LV_CFLAGS are passed to USER_C_MODULES
# STRIP= makes it so that debug symbols are kept
@@ -117,7 +117,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
# Restore @micropython.viper decorator after build
echo "Restoring @micropython.viper decorator..."
sed -i 's/^#@micropython\.viper$/@micropython.viper/' "$stream_wav_file"
sed -i.backup 's/^#@micropython\.viper$/@micropython.viper/' "$stream_wav_file"
else
echo "invalid target $target"
fi