]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/dist-powerpc-linux/Dockerfile
New upstream version 1.21.0+dfsg1
[rustc.git] / src / ci / docker / dist-powerpc-linux / Dockerfile
CommitLineData
32a655c1
SL
1FROM ubuntu:16.04
2
041b39d2
XL
3COPY scripts/cross-apt-packages.sh /scripts/
4RUN sh /scripts/cross-apt-packages.sh
5
041b39d2 6# Ubuntu 16.04 (this container) ships with make 4, but something in the
32a655c1 7# toolchains we build below chokes on that, so go back to make 3
041b39d2
XL
8COPY scripts/make3.sh /scripts/
9RUN sh /scripts/make3.sh
32a655c1 10
041b39d2
XL
11COPY scripts/crosstool-ng.sh /scripts/
12RUN sh /scripts/crosstool-ng.sh
32a655c1 13
041b39d2
XL
14COPY scripts/rustbuild-setup.sh /scripts/
15RUN sh /scripts/rustbuild-setup.sh
32a655c1
SL
16USER rustbuild
17WORKDIR /tmp
18
7cac9316
XL
19COPY dist-powerpc-linux/patches/ /tmp/patches/
20COPY dist-powerpc-linux/powerpc-linux-gnu.config dist-powerpc-linux/build-powerpc-toolchain.sh /tmp/
32a655c1
SL
21RUN ./build-powerpc-toolchain.sh
22
23USER root
24
041b39d2
XL
25COPY scripts/sccache.sh /scripts/
26RUN sh /scripts/sccache.sh
cc61c64b 27
32a655c1
SL
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 --host=$HOSTS --enable-extended
38ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
39
40# FIXME(#36150) this will fail the bootstrap. Probably means something bad is
41# happening!
42ENV NO_LLVM_ASSERTIONS 1