2019-02-02 13:54:18 -06:00
|
|
|
#!/bin/bash
|
|
|
|
# Set up the appropriate rustc toolchain
|
|
|
|
|
2019-06-02 21:23:15 -05: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 13:54:18 -06:00
|
|
|
|
|
|
|
RUSTC_HASH=$(git ls-remote https://github.com/rust-lang/rust.git master | awk '{print $1}')
|
2019-06-02 21:23:15 -05:00
|
|
|
rustup-toolchain-install-master -f -n master "$RUSTC_HASH"
|
2019-02-02 13:54:18 -06:00
|
|
|
rustup override set master
|