]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/i686-gnu-nopt/Dockerfile
Enable downloading prebuilt LLVM in test builders
[rust.git] / src / ci / docker / host-x86_64 / i686-gnu-nopt / Dockerfile
1 FROM ubuntu:16.04
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4   g++-multilib \
5   make \
6   ninja-build \
7   file \
8   curl \
9   ca-certificates \
10   python3 \
11   git \
12   cmake \
13   sudo \
14   gdb \
15   zlib1g-dev \
16   lib32z1-dev \
17   xz-utils
18
19
20 COPY scripts/sccache.sh /scripts/
21 RUN sh /scripts/sccache.sh
22
23 COPY scripts/cmake.sh /scripts/
24 RUN /scripts/cmake.sh
25
26 RUN mkdir -p /config
27 RUN echo "[rust]" > /config/nopt-std-config.toml
28 RUN echo "optimize = false" >> /config/nopt-std-config.toml
29
30 # We are intentionally allowing an old toolchain on this builder (and that's
31 # incompatible with LLVM downloads today).
32 ENV NO_DOWNLOAD_CI_LLVM 1
33
34 ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests \
35     --set llvm.allow-old-toolchain
36 ENV SCRIPT python3 ../x.py test --stage 0 --config /config/nopt-std-config.toml library/std \
37   && python3 ../x.py --stage 2 test