blob: 6e814adc3ecf945767a25f3b648a3cd52f36ef4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -euo pipefail
# shellcheck source=/dev/null
source ~/.bash_profile
if ! command -v rustup &>/dev/null
then
echo >&1 "Installing rustup"
# Install rustup and automatically accept the prompt
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
# shellcheck source=/dev/null
source "${HOME}/.cargo/env"
echo "source ~/.cargo/env" >> ~/.bash_profile
echo >&1 "Installing rustup targets"
rustup target add aarch64-apple-ios-sim aarch64-apple-ios
fi
|