]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/dist-x86_64-netbsd/Dockerfile
New upstream version 1.20.0+dfsg1
[rustc.git] / src / ci / docker / dist-x86_64-netbsd / 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
6COPY scripts/dumb-init.sh /scripts/
7RUN sh /scripts/dumb-init.sh
32a655c1 8
32a655c1
SL
9ENTRYPOINT ["/usr/bin/dumb-init", "--"]
10
041b39d2 11# Ubuntu 16.04 (this container) ships with make 4, but something in the
32a655c1 12# toolchains we build below chokes on that, so go back to make 3
041b39d2
XL
13COPY scripts/make3.sh /scripts/
14RUN sh /scripts/make3.sh
32a655c1 15
041b39d2
XL
16COPY scripts/crosstool-ng.sh /scripts/
17RUN sh /scripts/crosstool-ng.sh
32a655c1 18
041b39d2
XL
19COPY scripts/rustbuild-setup.sh /scripts/
20RUN sh /scripts/rustbuild-setup.sh
32a655c1
SL
21USER rustbuild
22WORKDIR /tmp
23
7cac9316 24COPY dist-x86_64-netbsd/build-netbsd-toolchain.sh /tmp/
cc61c64b 25RUN ./build-netbsd-toolchain.sh
32a655c1
SL
26
27USER root
28
041b39d2
XL
29COPY scripts/sccache.sh /scripts/
30RUN sh /scripts/sccache.sh
32a655c1 31
cc61c64b 32ENV PATH=$PATH:/x-tools/x86_64-unknown-netbsd/bin
32a655c1
SL
33
34ENV \
cc61c64b
XL
35 AR_x86_64_unknown_netbsd=x86_64--netbsd-ar \
36 CC_x86_64_unknown_netbsd=x86_64--netbsd-gcc-sysroot \
37 CXX_x86_64_unknown_netbsd=x86_64--netbsd-g++-sysroot
32a655c1
SL
38
39ENV HOSTS=x86_64-unknown-netbsd
32a655c1
SL
40
41ENV RUST_CONFIGURE_ARGS --host=$HOSTS --enable-extended
42ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS