Support arbitrary toolchains with cargo wrapper script (#12925)

(cherry picked from commit 99aecdaf65)

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-10-15 20:15:29 +00:00
committed by GitHub
parent 782ed192b6
commit 644304d171

4
cargo
View File

@@ -17,6 +17,10 @@ case "$1" in
toolchain="$rust_nightly" toolchain="$rust_nightly"
shift shift
;; ;;
+*)
toolchain="${1#+}"
shift
;;
*) *)
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh # shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
toolchain="$rust_stable" toolchain="$rust_stable"