fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1FROM ubuntu:16.04 2 3COPY scripts/cross-apt-packages.sh /scripts/ 4RUN sh /scripts/cross-apt-packages.sh 5 6 7# Ubuntu 16.04 (this container) ships with make 4, but something in the 8# toolchains we build below chokes on that, so go back to make 3 9COPY scripts/make3.sh /scripts/ 10RUN sh /scripts/make3.sh 11 12COPY scripts/crosstool-ng.sh /scripts/ 13RUN sh /scripts/crosstool-ng.sh 14 15COPY scripts/rustbuild-setup.sh /scripts/ 16RUN sh /scripts/rustbuild-setup.sh 17USER rustbuild 18WORKDIR /tmp 19 20COPY dist-powerpc64-linux/patches/ /tmp/patches/ 21COPY dist-powerpc64-linux/shared.sh dist-powerpc64-linux/powerpc64-linux-gnu.config dist-powerpc64-linux/build-powerpc64-toolchain.sh /tmp/ 22RUN ./build-powerpc64-toolchain.sh 23 24USER root 25 26COPY scripts/sccache.sh /scripts/ 27RUN sh /scripts/sccache.sh 28 29ENV PATH=$PATH:/x-tools/powerpc64-unknown-linux-gnu/bin 30 31ENV \ 32 AR_powerpc64_unknown_linux_gnu=powerpc64-unknown-linux-gnu-ar \ 33 CC_powerpc64_unknown_linux_gnu=powerpc64-unknown-linux-gnu-gcc \ 34 CXX_powerpc64_unknown_linux_gnu=powerpc64-unknown-linux-gnu-g++ 35 36ENV HOSTS=powerpc64-unknown-linux-gnu 37 38ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs 39ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS