|
|
|
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
export MAKEFLAGS="-j${NPROC:-$(nproc)}"
|
|
|
|
export CFLAGS='-w'
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
version_openssl=1.1.1w
|
|
|
|
version_mrustc=0.10.1
|
|
|
|
version_mrustc_rust=1.29.0
|
|
|
|
versions_llvm='7.1.0 10.0.1 13.0.1 16.0.6'
|
|
|
|
versions_rustc='1.30.1 1.31.1 1.32.0 1.33.0 1.34.2 1.35.0 1.36.0 1.37.0 1.38.0 1.39.0 1.40.0 1.41.1 1.42.0 1.43.1 1.44.1 1.45.2 1.46.0 1.47.0 1.48.0 1.49.0 1.50.0 1.51.0 1.52.1 1.53.0 1.54.0 1.55.0 1.56.1 1.57.0 1.58.1 1.59.0 1.60.0 1.61.0 1.62.1 1.63.0 1.64.0 1.65.0 1.66.1 1.67.1 1.68.2 1.69.0 1.70.0 1.71.1 1.72.1 1.73.0 1.74.1 1.75.0 1.76.0'
|
|
|
|
|
|
|
|
test -d build/install-openssl || ./build_openssl.sh
|
|
|
|
rm -rf build/openssl-$version_openssl
|
|
|
|
|
|
|
|
test -d build/install-rustc-$version_mrustc_rust || ./build_mrustc.sh
|
|
|
|
rm -rf build/mrustc-$version_mrustc
|
|
|
|
|
|
|
|
for version in $versions_llvm; do
|
|
|
|
test -d build/install-llvm-$version || ./build_llvm.sh $version
|
|
|
|
rm -rf build/llvm-$version.src
|
|
|
|
rm -rf build/llvm-project-$version
|
|
|
|
rm -rf build/llvm-project-$version.src
|
|
|
|
done
|
|
|
|
|
|
|
|
last_version=$version_mrustc_rust
|
|
|
|
for version in $versions_rustc; do
|
|
|
|
test -e build/install-rustc-$version/bin/cargo || ./build_rust.sh $last_version $version
|
|
|
|
rm -rf build/rustc-$version-src
|
|
|
|
last_version=$version
|
|
|
|
done
|