fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.1 KiB39 linesraw
1FROM ubuntu:16.04
2
3COPY scripts/cross-apt-packages.sh /scripts/
4RUN sh /scripts/cross-apt-packages.sh
5
6# Ubuntu 16.04 (this container) ships with make 4, but something in the
7# toolchains we build below chokes on that, so go back to make 3
8COPY scripts/make3.sh /scripts/
9RUN sh /scripts/make3.sh
10
11COPY scripts/crosstool-ng.sh /scripts/
12RUN sh /scripts/crosstool-ng.sh
13
14COPY scripts/rustbuild-setup.sh /scripts/
15RUN sh /scripts/rustbuild-setup.sh
16USER rustbuild
17WORKDIR /tmp
18
19COPY dist-aarch64-linux/aarch64-linux-gnu.config dist-aarch64-linux/build-toolchains.sh /tmp/
20RUN ./build-toolchains.sh
21
22USER root
23
24COPY scripts/sccache.sh /scripts/
25RUN sh /scripts/sccache.sh
26
27ENV PATH=$PATH:/x-tools/aarch64-unknown-linux-gnueabi/bin
28
29ENV CC_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnueabi-gcc \
30    AR_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnueabi-ar \
31    CXX_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnueabi-g++
32
33ENV HOSTS=aarch64-unknown-linux-gnu
34
35ENV RUST_CONFIGURE_ARGS \
36      --enable-extended \
37      --enable-profiler \
38      --disable-docs
39ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS