fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB39 linesraw
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, and we install python2 to test general compatibility.
10RUN apt-get update && \
11    apt-get install -y --no-install-recommends \
12    libgmp-dev \
13    libmpfr-dev \
14    libmpc-dev \
15    python2.7 \
16    && rm -rf /var/lib/apt/lists/*
17
18COPY scripts/illumos-toolchain.sh /tmp/
19
20RUN bash /tmp/illumos-toolchain.sh x86_64 sysroot
21RUN bash /tmp/illumos-toolchain.sh x86_64 binutils
22RUN bash /tmp/illumos-toolchain.sh x86_64 gcc
23
24COPY scripts/sccache.sh /scripts/
25RUN sh /scripts/sccache.sh
26
27COPY scripts/cmake.sh /scripts/
28RUN /scripts/cmake.sh
29
30ENV \
31    AR_x86_64_unknown_illumos=x86_64-illumos-ar \
32    RANLIB_x86_64_unknown_illumos=x86_64-illumos-ranlib \
33    CC_x86_64_unknown_illumos=x86_64-illumos-gcc \
34    CXX_x86_64_unknown_illumos=x86_64-illumos-g++
35
36ENV HOSTS=x86_64-unknown-illumos
37
38ENV RUST_CONFIGURE_ARGS --enable-extended --disable-docs
39ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS