]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/x86_64-gnu-llvm-7/Dockerfile
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / ci / docker / x86_64-gnu-llvm-7 / Dockerfile
1 FROM ubuntu:18.04
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4   g++ \
5   make \
6   file \
7   curl \
8   ca-certificates \
9   python2.7 \
10   git \
11   cmake \
12   sudo \
13   gdb \
14   llvm-7-tools \
15   libedit-dev \
16   libssl-dev \
17   pkg-config \
18   zlib1g-dev \
19   xz-utils \
20   nodejs
21
22 COPY scripts/sccache.sh /scripts/
23 RUN sh /scripts/sccache.sh
24
25 # using llvm-link-shared due to libffi issues -- see #34486
26 ENV RUST_CONFIGURE_ARGS \
27       --build=x86_64-unknown-linux-gnu \
28       --llvm-root=/usr/lib/llvm-7 \
29       --enable-llvm-link-shared \
30       --set rust.thin-lto-import-instr-limit=10
31
32 ENV SCRIPT python2.7 ../x.py test --exclude src/tools/tidy && python2.7 ../x.py test src/tools/tidy
33
34 # The purpose of this container isn't to test with debug assertions and
35 # this is run on all PRs, so let's get speedier builds by disabling these extra
36 # checks.
37 ENV NO_DEBUG_ASSERTIONS=1
38 ENV NO_LLVM_ASSERTIONS=1