2019-02-02 20:54:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Set up the appropriate rustc toolchain
|
|
|
|
|
2019-06-03 04:23:15 +02:00
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
|
|
if ! command -v rustup-toolchain-install-master > /dev/null; then
|
|
|
|
cargo install rustup-toolchain-install-master --debug
|
|
|
|
fi
|
2019-02-02 20:54:18 +01:00
|
|
|
|
|
|
|
RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
|
2019-06-03 04:23:15 +02:00
|
|
|
rustup-toolchain-install-master -f -n master "$RUSTC_HASH"
|
2019-02-02 20:54:18 +01:00
|
|
|
rustup override set master
|