rust-clippy/setup-toolchain.sh
Lzu Tao 7d7451a67a build: use release build of RTIM
rustup-toolchain-install-master on Travis Windows builds is
unexpectedly slower when it was running on other OSes.
This commit tries to use release build of RTIM as a mean to
improve performance there.
2019-10-18 14:58:26 +07:00

13 lines
354 B
Bash
Executable file

#!/bin/bash
# Set up the appropriate rustc toolchain
set -e
cd "$(dirname "$0")"
if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
fi
rustup-toolchain-install-master -f -n master
rustup override set master