fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
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-s390x-linux/patches/ /tmp/patches/ 20COPY dist-s390x-linux/s390x-linux-gnu.config dist-s390x-linux/build-s390x-toolchain.sh /tmp/ 21RUN ./build-s390x-toolchain.sh 22 23USER root 24 25COPY scripts/sccache.sh /scripts/ 26RUN sh /scripts/sccache.sh 27 28ENV PATH=$PATH:/x-tools/s390x-ibm-linux-gnu/bin 29 30ENV \ 31 CC_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-gcc \ 32 AR_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-ar \ 33 CXX_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-g++ 34 35ENV HOSTS=s390x-unknown-linux-gnu 36 37ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs 38ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS