]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/host-x86_64/dist-x86_64-illumos/Dockerfile
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / ci / docker / host-x86_64 / dist-x86_64-illumos / Dockerfile
CommitLineData
3dfed10e
XL
1FROM ubuntu:18.04
2
3# Enable source repositories, which are disabled by default on Ubuntu >= 18.04
4RUN sed -i 's/^# deb-src/deb-src/' /etc/apt/sources.list
5
6COPY scripts/cross-apt-packages.sh /tmp/
7RUN bash /tmp/cross-apt-packages.sh
8
9# Required for cross-build gcc
10RUN apt-get update && \
11 apt-get install -y --no-install-recommends \
12 libgmp-dev \
13 libmpfr-dev \
14 libmpc-dev
15
16COPY scripts/illumos-toolchain.sh /tmp/
17
18RUN bash /tmp/illumos-toolchain.sh x86_64 sysroot
19RUN bash /tmp/illumos-toolchain.sh x86_64 binutils
20RUN bash /tmp/illumos-toolchain.sh x86_64 gcc
21
22COPY scripts/sccache.sh /scripts/
23RUN sh /scripts/sccache.sh
24
6a06907d
XL
25COPY scripts/cmake.sh /scripts/
26RUN /scripts/cmake.sh
27
3dfed10e
XL
28ENV \
29 AR_x86_64_unknown_illumos=x86_64-illumos-ar \
30 CC_x86_64_unknown_illumos=x86_64-illumos-gcc \
31 CXX_x86_64_unknown_illumos=x86_64-illumos-g++
32
33ENV HOSTS=x86_64-unknown-illumos
34
35ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
36ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS