Skip to content

Commit ede5675

Browse files
Try to fix macOS build
It has a weird "sed" program that doesn't allow -i or something.
1 parent 6f3fe0a commit ede5675

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
@@ -106,7 +106,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
106106
# (cross-compiler doesn't support Viper native code emitter)
107107
echo "Temporarily commenting out @micropython.viper decorator for Unix/macOS build..."
108108
stream_wav_file="$codebasedir"/internal_filesystem/lib/mpos/audio/stream_wav.py
109-
sed -i 's/^@micropython\.viper$/#@micropython.viper/' "$stream_wav_file"
109+
sed -i.backup 's/^@micropython\.viper$/#@micropython.viper/' "$stream_wav_file"
110110

111111
# LV_CFLAGS are passed to USER_C_MODULES
112112
# STRIP= makes it so that debug symbols are kept
@@ -117,7 +117,7 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
117117

118118
# Restore @micropython.viper decorator after build
119119
echo "Restoring @micropython.viper decorator..."
120-
sed -i 's/^#@micropython\.viper$/@micropython.viper/' "$stream_wav_file"
120+
sed -i.backup 's/^#@micropython\.viper$/@micropython.viper/' "$stream_wav_file"
121121
else
122122
echo "invalid target $target"
123123
fi

0 commit comments

Comments
 (0)