Skip to content

Commit 5eef405

Browse files
committed
之前会报[: ==: unary operator expected,导致都编译ssl版本
1 parent 94f2365 commit 5eef405

1 file changed

Lines changed: 22 additions & 23 deletions

File tree

ios.sh

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,28 @@ GYP_DEFINES+=" ios_target_arch=arm64"
5252
GYP_DEFINES+=" host_os=$HOST_OS OS=ios"
5353
export GYP_DEFINES
5454

55-
if [ -f "configure" ]; then
56-
57-
if [ $WITHSSL == "" ]; then
58-
./configure \
59-
--ninja \
60-
--dest-cpu=arm64 \
61-
--dest-os=ios \
62-
--without-snapshot \
63-
--without-ssl \
64-
--enable-static \
65-
--with-intl=none \
66-
--cross-compiling
67-
else
68-
./configure \
69-
--ninja \
70-
--dest-cpu=arm64 \
71-
--dest-os=ios \
72-
--without-snapshot \
73-
--openssl-no-asm \
74-
--enable-static \
75-
--with-intl=none \
76-
--cross-compiling
77-
fi
55+
if [ "$WITHSSL" == "" ]; then
56+
echo "=========================building without-ssl version================================="
57+
./configure \
58+
--ninja \
59+
--dest-cpu=arm64 \
60+
--dest-os=ios \
61+
--without-snapshot \
62+
--without-ssl \
63+
--enable-static \
64+
--with-intl=none \
65+
--cross-compiling
66+
else
67+
echo "=========================building with-ssl version================================="
68+
./configure \
69+
--ninja \
70+
--dest-cpu=arm64 \
71+
--dest-os=ios \
72+
--without-snapshot \
73+
--openssl-no-asm \
74+
--enable-static \
75+
--with-intl=none \
76+
--cross-compiling
7877
fi
7978

8079
./ninja -j 8 -w dupbuild=warn -C out/Release

0 commit comments

Comments
 (0)