fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
924 B30 linesraw
1FROM ubuntu:22.04
2
3COPY scripts/cross-apt-packages.sh /scripts/
4RUN sh /scripts/cross-apt-packages.sh
5
6COPY scripts/crosstool-ng.sh /scripts/
7RUN sh /scripts/crosstool-ng.sh
8
9COPY scripts/rustbuild-setup.sh /scripts/
10RUN sh /scripts/rustbuild-setup.sh
11WORKDIR /tmp
12
13COPY scripts/crosstool-ng-build.sh /scripts/
14COPY host-x86_64/dist-s390x-linux/s390x-linux-gnu.defconfig /tmp/crosstool.defconfig
15RUN /scripts/crosstool-ng-build.sh
16
17COPY scripts/sccache.sh /scripts/
18RUN sh /scripts/sccache.sh
19
20ENV PATH=$PATH:/x-tools/s390x-ibm-linux-gnu/bin
21
22ENV \
23    CC_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-gcc \
24    AR_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-ar \
25    CXX_s390x_unknown_linux_gnu=s390x-ibm-linux-gnu-g++
26
27ENV HOSTS=s390x-unknown-linux-gnu
28
29ENV RUST_CONFIGURE_ARGS --enable-extended --enable-lld --enable-sanitizers --enable-profiler --disable-docs
30ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS