File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -e
3
3
4
- rustup component add rust-src rustc-dev llvm-tools-preview
5
4
./build_sysroot/prepare_sysroot_src.sh
6
5
cargo install hyperfine || echo " Skipping hyperfine install"
7
6
Original file line number Diff line number Diff line change 1
- nightly-2021-03-05
1
+ [toolchain]
2
+ channel = "nightly-2021-03-05"
3
+ components = ["rust-src", "rustc-dev", "llvm-tools-preview"]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ dir=$(dirname "$0")
4
4
source " $dir /config.sh"
5
5
6
6
# read nightly compiler from rust-toolchain file
7
- TOOLCHAIN=$( cat " $dir /rust-toolchain" )
7
+ TOOLCHAIN=$( cat " $dir /rust-toolchain" | grep channel | sed " s/channel = \" \(.*\) \" /\1/ " )
8
8
9
9
cmd=$1
10
10
shift || true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ case $1 in
8
8
9
9
echo " => Installing new nightly"
10
10
rustup toolchain install --profile minimal " nightly-${TOOLCHAIN} " # Sanity check to see if the nightly exists
11
- echo " nightly-${TOOLCHAIN} " > rust-toolchain
11
+ sed -i " s/ \" nightly-.* \" / \" nightly- ${TOOLCHAIN} \" / " rust-toolchain
12
12
rustup component add rustfmt || true
13
13
14
14
echo " => Uninstalling all old nighlies"
You can’t perform that action at this time.
0 commit comments