]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/dist-x86_64-netbsd/Dockerfile
Auto merge of #48630 - alexcrichton:more-sccache, r=kennytm
[rust.git] / src / ci / docker / dist-x86_64-netbsd / Dockerfile
1 FROM ubuntu:16.04
2
3 COPY scripts/cross-apt-packages.sh /scripts/
4 RUN 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
8 COPY scripts/make3.sh /scripts/
9 RUN sh /scripts/make3.sh
10
11 COPY scripts/crosstool-ng.sh /scripts/
12 RUN sh /scripts/crosstool-ng.sh
13
14 COPY scripts/rustbuild-setup.sh /scripts/
15 RUN sh /scripts/rustbuild-setup.sh
16 USER rustbuild
17 WORKDIR /tmp
18
19 COPY dist-x86_64-netbsd/build-netbsd-toolchain.sh /tmp/
20 RUN ./build-netbsd-toolchain.sh
21
22 USER root
23
24 COPY scripts/sccache.sh /scripts/
25 RUN sh /scripts/sccache.sh
26
27 ENV PATH=$PATH:/x-tools/x86_64-unknown-netbsd/bin
28
29 ENV \
30     AR_x86_64_unknown_netbsd=x86_64--netbsd-ar \
31     CC_x86_64_unknown_netbsd=x86_64--netbsd-gcc-sysroot \
32     CXX_x86_64_unknown_netbsd=x86_64--netbsd-g++-sysroot
33
34 ENV HOSTS=x86_64-unknown-netbsd
35
36 ENV RUST_CONFIGURE_ARGS --enable-extended
37 ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS