Skip to content

Commit

Permalink
rust: update from 1.53.0 to 1.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
finagolfin committed Aug 6, 2021
1 parent d6ef78f commit be04083
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/rust/build.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
TERMUX_PKG_HOMEPAGE=https://www.rust-lang.org/
TERMUX_PKG_DESCRIPTION="Systems programming language focused on safety, speed and concurrency"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Kevin Cotugno @kcotugno"
TERMUX_PKG_VERSION=1.53.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_VERSION=1.54.0
TERMUX_PKG_SRCURL=https://static.rust-lang.org/dist/rustc-$TERMUX_PKG_VERSION-src.tar.xz
TERMUX_PKG_SHA256=e53a2df2c2c26f8929d551852eeae242b9a6167fba34481f92010b30def32dec
TERMUX_PKG_SHA256=a2934f85f76a35a3796c0fefd31e91f5b6dd8377cd8c3769c1c10e7ce7a495f4
TERMUX_PKG_DEPENDS="libc++, clang, openssl, lld, zlib, libllvm"
TERMUX_PKG_RM_AFTER_INSTALL="bin/llvm-dwp"
TERMUX_PKG_BLACKLISTED_ARCHES="i686,aarch64,x86_64"

termux_step_configure() {
termux_setup_cmake
Expand All @@ -20,7 +19,7 @@ termux_step_configure() {
# like 30 to 40 + minutes ... so lets get it right

# upstream only tests build ver one version behind $TERMUX_PKG_VERSION
local BOOTSTRAP_VERSION=1.52.0
local BOOTSTRAP_VERSION=1.53.0
rustup install $BOOTSTRAP_VERSION
rustup default $BOOTSTRAP_VERSION-x86_64-unknown-linux-gnu
export PATH=$HOME/.rustup/toolchains/$BOOTSTRAP_VERSION-x86_64-unknown-linux-gnu/bin:$PATH
Expand Down Expand Up @@ -72,6 +71,9 @@ termux_step_make_install() {
#$TERMUX_PKG_SRCDIR/x.py dist --stage 1 --host $CARGO_TARGET_NAME --target $CARGO_TARGET_NAME || bash
$TERMUX_PKG_SRCDIR/x.py install --stage 1 --host $CARGO_TARGET_NAME --target $CARGO_TARGET_NAME || bash
$TERMUX_PKG_SRCDIR/x.py install --stage 1 std --target wasm32-unknown-unknown || bash
if [ $TERMUX_ARCH = "arm" ]; then
export TARGET_LDFLAGS=" -lgcc"
fi
$TERMUX_PKG_SRCDIR/x.py dist rustc-dev --host $CARGO_TARGET_NAME --target $CARGO_TARGET_NAME --target wasm32-unknown-unknown || bash
tar xvf build/dist/rustc-dev-$TERMUX_PKG_VERSION-$CARGO_TARGET_NAME.tar.gz
./rustc-dev-$TERMUX_PKG_VERSION-$CARGO_TARGET_NAME/install.sh --prefix=$TERMUX_PREFIX
Expand Down

0 comments on commit be04083

Please sign in to comment.