unify ios mac build

This commit is contained in:
John Smith 2022-12-01 20:38:57 -05:00
parent 46504e44b8
commit ef313133cf
9 changed files with 78 additions and 126 deletions

View file

@ -4,10 +4,10 @@ CARGO=`which cargo`
CARGO=${CARGO:=~/.cargo/bin/cargo}
CARGO_DIR=$(dirname $CARGO)
WORKING_DIR=$1
shift
echo $WORKING_DIR
pushd $WORKING_DIR >/dev/null
# WORKING_DIR=$1
# shift
# echo $WORKING_DIR
# pushd $WORKING_DIR >/dev/null
echo PWD: `pwd`
CARGO_MANIFEST_PATH=$(python3 -c "import os; import json; print(json.loads(os.popen('$CARGO locate-project').read())['root'])")
@ -40,7 +40,6 @@ do
else
CARGO_TARGET=aarch64-apple-ios
fi
#CARGO_TOOLCHAIN=+ios-arm64-1.57.0
CARGO_TOOLCHAIN=
elif [ "$arch" == "x86_64" ]; then
echo x86_64