Browse Source

termux_setup_rust.sh: always pick rust version from package build script

Avoid version mismatch.
android-5
Leonid Plyushch 6 years ago
committed by Fredrik Fornwall
parent
commit
c53856b4d2
  1. 4
      scripts/build/setup/termux_setup_rust.sh

4
scripts/build/setup/termux_setup_rust.sh

@ -10,8 +10,8 @@ termux_setup_rust() {
export $ENV_NAME=$CC
curl https://sh.rustup.rs -sSf > $TERMUX_PKG_TMPDIR/rustup.sh
local _TOOLCHAIN_VERSION=1.34.1
local _TOOLCHAIN_VERSION=$(bash -c ". $TERMUX_SCRIPTDIR/packages/rust/build.sh; echo \$TERMUX_PKG_VERSION")
sh $TERMUX_PKG_TMPDIR/rustup.sh -y --default-toolchain $_TOOLCHAIN_VERSION
export PATH=$HOME/.cargo/bin:$PATH

Loading…
Cancel
Save