File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,15 @@ case "$(uname -s)" in
78
78
* ) echo " unsupported system" ; exit 1;;
79
79
esac
80
80
81
+ if [ " $SYSTEM " = Mac -a " $STATIC " = 1 ]; then
82
+ echo " Linking statically is not supported on macOS. Please remove -s flag."
83
+ exit 1
84
+ fi
85
+ if [ " $SYSTEM " != Linux -a -n " $SQUASHFS_DATA " ]; then
86
+ echo " Mounting squashfs is only supported on Linux. Please remove -M flag."
87
+ exit 1
88
+ fi
89
+
81
90
if [ " $SYSTEM " = Termux ]; then
82
91
LDFLAGS=" $LDFLAGS -landroid-wordexp"
83
92
if [ " $STATIC " = 1 ]; then
@@ -129,7 +138,7 @@ b2o() {
129
138
# cleanup on exit
130
139
trap " rm -f \" $1 .cpp\" \" $1 .tmp\" i.o i s.o s rc4 crc32 d.sfs" EXIT
131
140
132
- perl -pe ' s/^\xEF\xBB\xBF//; s/\r\n/\n/' " $1 " > " $1 .tmp"
141
+ perl -pe ' s/^\xEF\xBB\xBF//; s/\r\n/\n/' " $1 " > " $1 .tmp" || exit 1
133
142
if [ " $( head -c2 " $1 .tmp" ) " = " #!" ]; then
134
143
SHEBANG=" $( head -n1 " $1 .tmp" ) "
135
144
SHEBANG_LEN=" $( head -n1 " $1 .tmp" | wc -c) "
You can’t perform that action at this time.
0 commit comments