Skip to content

Commit

Permalink
Merge pull request #19 from getditto/dhm/stable-toolchain
Browse files Browse the repository at this point in the history
1.57.0 release
  • Loading branch information
danielhenrymantilla authored Dec 8, 2021
2 parents f673071 + 733659a commit 22c3b8e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,27 @@
# returned by the command below:
# $ xcrun -sdk iphoneos swiftc --version

set -euxo pipefail

RUST_TOOLCHAIN="1.57.0"

LLVM_BRANCH="swift-5.3.2-RELEASE"

get_rust_commit_for_toolchain() (
# Yields "" for a toolchain like `x.y.z`, and `mm-dd-yy` for `nightly-mm-dd-yy`
IF_NIGHTLY_DATE_STRIPPED=$(echo "${RUST_TOOLCHAIN}" | sed -n 's/^nightly-//p')
if [ -n "${IF_NIGHTLY_DATE_STRIPPED}" ]; then
curl "https://static.rust-lang.org/dist/${IF_NIGHTLY_DATE_STRIPPED}/channel-rust-nightly-git-commit-hash.txt"
else
echo "refs/tags/${RUST_TOOLCHAIN}"
fi
)

# 2. Select the best branch, tag or commit hash from https://github.com/rust-lang/rust

RUST_BRANCH="003d8d3f56848b6f3833340e859b089a09aea36a" # 2021-10-05
RUST_BRANCH="$(get_rust_commit_for_toolchain)"

# 3. Select a name for the toolchain you want to install as. The toolchain will be installed
# under $HOME/.rustup/toolchains/rust-$RUST_TOOLCHAIN

RUST_TOOLCHAIN="ios-arm64-nightly-2021-10-05"
RUST_TOOLCHAIN="ios-arm64-${RUST_TOOLCHAIN}"

0 comments on commit 22c3b8e

Please sign in to comment.