Skip to content

Commit

Permalink
之前会报[: ==: unary operator expected,导致都编译ssl版本
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Jun 4, 2024
1 parent 94f2365 commit 5eef405
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,28 @@ GYP_DEFINES+=" ios_target_arch=arm64"
GYP_DEFINES+=" host_os=$HOST_OS OS=ios"
export GYP_DEFINES

if [ -f "configure" ]; then

if [ $WITHSSL == "" ]; then
./configure \
--ninja \
--dest-cpu=arm64 \
--dest-os=ios \
--without-snapshot \
--without-ssl \
--enable-static \
--with-intl=none \
--cross-compiling
else
./configure \
--ninja \
--dest-cpu=arm64 \
--dest-os=ios \
--without-snapshot \
--openssl-no-asm \
--enable-static \
--with-intl=none \
--cross-compiling
fi
if [ "$WITHSSL" == "" ]; then
echo "=========================building without-ssl version================================="
./configure \
--ninja \
--dest-cpu=arm64 \
--dest-os=ios \
--without-snapshot \
--without-ssl \
--enable-static \
--with-intl=none \
--cross-compiling
else
echo "=========================building with-ssl version================================="
./configure \
--ninja \
--dest-cpu=arm64 \
--dest-os=ios \
--without-snapshot \
--openssl-no-asm \
--enable-static \
--with-intl=none \
--cross-compiling
fi

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

0 comments on commit 5eef405

Please sign in to comment.