mid-kid
4 years ago
6 changed files with 36 additions and 14 deletions
@ -1,23 +1,35 @@ |
|||
#!/bin/sh |
|||
set -eu |
|||
|
|||
export MAKEFLAGS="-j$(nproc)" |
|||
export MAKEFLAGS="-j${NPROC:-$(nproc)}" |
|||
export CFLAGS='-w' |
|||
export CXXFLAGS="$CFLAGS" |
|||
|
|||
version_mrustc=0.9 |
|||
version_mrustc_rust=1.29.0 |
|||
versions_llvm='7.1.0' |
|||
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' |
|||
versions_llvm='7.1.0 10.0.1' |
|||
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' |
|||
|
|||
[ ! -d build/install-rustc-$version_mrustc_rust ] && ./build_mrustc.sh |
|||
# Save a ton of space by deleting the source |
|||
rm -rf build/mrustc-$version_mrustc |
|||
|
|||
for version in $versions_llvm; do |
|||
[ ! -d build/install-llvm-$version ] && ./build_llvm.sh $version |
|||
# Save a ton of space by deleting the source |
|||
rm -rf build/llvm-$version.src |
|||
done |
|||
|
|||
last_version=$version_mrustc_rust |
|||
for version in $versions_rustc; do |
|||
version_llvm=7.1.0 |
|||
case "$version" in |
|||
1.3[0-9].*|1.4[0-3].*) |
|||
version_llvm=7.1.0 ;; |
|||
1.4[4-7].*|*) |
|||
version_llvm=10.0.1 ;; |
|||
esac |
|||
[ ! -e build/install-rustc-$version/bin/cargo ] && ./build_rust.sh $last_version $version $version_llvm |
|||
# Save a ton of space by deleting the source |
|||
rm -rf build/rustc-$version-src |
|||
last_version=$version |
|||
done |
|||
|
Loading…
Reference in new issue