set -ex
MAIN_TARGETS=https://static.rust-lang.org/dist
case "$TARGET" in
arm-linux-androideabi)
exec docker run \
--entrypoint bash \
-v `rustc --print sysroot`:/usr/local:ro \
-v `pwd`:/checkout \
-e LD_LIBRARY_PATH=/usr/local/lib \
-e CARGO_TARGET_DIR=/tmp \
-w /checkout \
-it $DOCKER \
ci/run.sh $TARGET
;;
*-apple-ios)
exec sh ci/run.sh $TARGET
;;
esac