fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB37 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-armhf-linux/patches/ /tmp/patches/
20COPY dist-armhf-linux/arm-linux-gnueabihf.config dist-armhf-linux/build-toolchains.sh /tmp/
21RUN ./build-toolchains.sh
22
23USER root
24
25COPY scripts/sccache.sh /scripts/
26RUN sh /scripts/sccache.sh
27
28ENV PATH=$PATH:/x-tools/arm-unknown-linux-gnueabihf/bin
29
30ENV CC_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc \
31    AR_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-ar \
32    CXX_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-g++
33
34ENV HOSTS=arm-unknown-linux-gnueabihf
35
36ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
37ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS