]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/host-x86_64/dist-s390x-linux/Dockerfile
New upstream version 1.61.0+dfsg1
[rustc.git] / src / ci / docker / host-x86_64 / dist-s390x-linux / Dockerfile
CommitLineData
ee023bcb 1FROM ubuntu:20.04
32a655c1 2
041b39d2
XL
3COPY scripts/cross-apt-packages.sh /scripts/
4RUN sh /scripts/cross-apt-packages.sh
5
ee023bcb
FG
6COPY scripts/crosstool-ng-1.24.sh /scripts/
7RUN sh /scripts/crosstool-ng-1.24.sh
32a655c1 8
041b39d2
XL
9COPY scripts/rustbuild-setup.sh /scripts/
10RUN sh /scripts/rustbuild-setup.sh
32a655c1
SL
11USER rustbuild
12WORKDIR /tmp
13
f035d41b
XL
14COPY host-x86_64/dist-s390x-linux/patches/ /tmp/patches/
15COPY host-x86_64/dist-s390x-linux/s390x-linux-gnu.config host-x86_64/dist-s390x-linux/build-s390x-toolchain.sh /tmp/
32a655c1
SL
16RUN ./build-s390x-toolchain.sh
17
18USER root
19
041b39d2
XL
20COPY scripts/sccache.sh /scripts/
21RUN sh /scripts/sccache.sh
32a655c1 22
6a06907d
XL
23COPY scripts/cmake.sh /scripts/
24RUN /scripts/cmake.sh
25
32a655c1
SL
26ENV PATH=$PATH:/x-tools/s390x-ibm-linux-gnu/bin
27
28ENV \
32a655c1
SL
29 CC_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-gcc \
30 AR_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-ar \
31 CXX_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-g++
32
cc61c64b 33ENV HOSTS=s390x-unknown-linux-gnu
32a655c1 34
ee023bcb 35ENV RUST_CONFIGURE_ARGS --enable-extended --enable-lld --disable-docs
ba9703b0 36ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS