fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
1.1 KiB38 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-powerpc-linux/patches/ /tmp/patches/
20COPY dist-powerpc-linux/powerpc-linux-gnu.config dist-powerpc-linux/build-powerpc-toolchain.sh /tmp/
21RUN ./build-powerpc-toolchain.sh
22
23USER root
24
25COPY scripts/sccache.sh /scripts/
26RUN sh /scripts/sccache.sh
27
28ENV PATH=$PATH:/x-tools/powerpc-unknown-linux-gnu/bin
29
30ENV \
31    CC_powerpc_unknown_linux_gnu=powerpc-unknown-linux-gnu-gcc \
32    AR_powerpc_unknown_linux_gnu=powerpc-unknown-linux-gnu-ar \
33    CXX_powerpc_unknown_linux_gnu=powerpc-unknown-linux-gnu-g++
34
35ENV HOSTS=powerpc-unknown-linux-gnu
36
37ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
38ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS