From 777ee7f6c917a3e7b3d504aec2a67b0335fe8a7c Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Fri, 8 Jan 2021 06:05:09 -0500 Subject: [PATCH] Pin our version of Rust to 1.37.0 in our build system, which mostly works --- build.sh | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 3e14d11..d63b8d7 100755 --- a/build.sh +++ b/build.sh @@ -4,5 +4,28 @@ # file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html set -eu -o pipefail -cd cli -cargo build --release + +# TODO: find elite Rust coders to update our shit +# to work on modern versions of rustc, lulz + +PREFIX=rust-1.37.0-x86_64-unknown-linux-gnu +FILE=$PREFIX.tar.gz + +if [ ! -f "$FILE" ]; then + wget https://static.rust-lang.org/dist/$FILE +fi + +#TODO: verify SHA256 +# cb573229bfd32928177c3835fdeb62d52da64806b844bc1095c6225b0665a1cb rust-1.37.0-x86_64-unknown-linux-gnu.tar.gz + +tar zxvpf $FILE +mkdir -p build +cd $PREFIX +./install.sh --prefix=$(pwd)/../build + +cd ../cli +PATH=$(pwd)/../build/bin/:$PATH +echo PATH=$PATH +cargo --version +rustc --version +../build/bin/cargo build --verbose --release