]> git.lizzy.rs Git - rust.git/blob - setup-toolchain.sh
49278a9137d7cad06bd0c0e11539a15a99a15ce7
[rust.git] / setup-toolchain.sh
1 #!/bin/bash
2 # Set up the appropriate rustc toolchain
3
4 cd "$(dirname "$0")" || exit
5
6 if ! command -v rustup-toolchain-install-master > /dev/null; then
7   cargo install \
8     --git https://github.com/lzutao/rustup-toolchain-install-master \
9     --rev c44dbf920b644000ac3ba01184cbb1a01bb91519 \
10     --bin rustup-toolchain-install-master \
11     --debug
12 fi
13
14 rustup-toolchain-install-master -f -n master
15 rustup override set master