fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.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 19USER root 20 21RUN apt-get install -y --no-install-recommends rpm2cpio cpio 22COPY dist-powerpc64le-linux/shared.sh dist-powerpc64le-linux/build-powerpc64le-toolchain.sh /tmp/ 23RUN ./build-powerpc64le-toolchain.sh 24 25COPY scripts/sccache.sh /scripts/ 26RUN sh /scripts/sccache.sh 27 28ENV \ 29 AR_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-ar \ 30 CC_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-gcc \ 31 CXX_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-g++ 32 33ENV HOSTS=powerpc64le-unknown-linux-gnu 34 35ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs 36ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS