]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/dist-riscv64-linux/crosstool-ng.sh
Update dist-arm-linux to Ubuntu 20.04
[rust.git] / src / ci / docker / host-x86_64 / dist-riscv64-linux / crosstool-ng.sh
1 #!/bin/sh
2 set -ex
3
4 # Mirrored from https://github.com/crosstool-ng/crosstool-ng/archive/crosstool-ng-1.24.0.tar.gz
5 url="https://ci-mirrors.rust-lang.org/rustc/crosstool-ng-1.24.0.tar.gz"
6 curl -Lf $url | tar xzf -
7 cd crosstool-ng-crosstool-ng-1.24.0
8 ./bootstrap
9 ./configure --prefix=/usr/local
10 make -j$(nproc)
11 make install
12 cd ..
13 rm -rf crosstool-ng-crosstool-ng-1.24.0