fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
923 B31 linesraw
1FROM ubuntu:16.04
2
3COPY scripts/cross-apt-packages.sh /scripts/
4RUN sh /scripts/cross-apt-packages.sh
5
6COPY dist-armv7-linux/crosstool-ng.sh /scripts/
7RUN sh /scripts/crosstool-ng.sh
8
9COPY scripts/rustbuild-setup.sh /scripts/
10RUN sh /scripts/rustbuild-setup.sh
11USER rustbuild
12WORKDIR /tmp
13
14COPY dist-armv7-linux/build-toolchains.sh dist-armv7-linux/armv7-linux-gnueabihf.config /tmp/
15RUN ./build-toolchains.sh
16
17USER root
18
19COPY scripts/sccache.sh /scripts/
20RUN sh /scripts/sccache.sh
21
22ENV PATH=$PATH:/x-tools/armv7-unknown-linux-gnueabihf/bin
23
24ENV CC_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-gcc \
25    AR_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-ar \
26    CXX_armv7_unknown_linux_gnueabihf=armv7-unknown-linux-gnueabihf-g++
27
28ENV HOSTS=armv7-unknown-linux-gnueabihf
29
30ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
31ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS