]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/x86_64-gnu-llvm-10/Dockerfile
Added docs to internal_macro const
[rust.git] / src / ci / docker / host-x86_64 / x86_64-gnu-llvm-10 / Dockerfile
1 FROM ubuntu:18.04
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4   g++ \
5   gcc-multilib \
6   make \
7   ninja-build \
8   file \
9   curl \
10   ca-certificates \
11   python2.7 \
12   git \
13   cmake \
14   sudo \
15   gdb \
16   llvm-10-tools \
17   llvm-10-dev \
18   libedit-dev \
19   libssl-dev \
20   pkg-config \
21   zlib1g-dev \
22   xz-utils \
23   nodejs
24
25 COPY scripts/sccache.sh /scripts/
26 RUN sh /scripts/sccache.sh
27
28 # using llvm-link-shared due to libffi issues -- see #34486
29 ENV RUST_CONFIGURE_ARGS \
30       --build=x86_64-unknown-linux-gnu \
31       --llvm-root=/usr/lib/llvm-10 \
32       --enable-llvm-link-shared \
33       --set rust.thin-lto-import-instr-limit=10
34
35 ENV SCRIPT python2.7 ../x.py --stage 2 test --exclude src/tools/tidy && \
36            # Run the `mir-opt` tests again but this time for a 32-bit target.
37            # This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
38            # both 32-bit and 64-bit outputs updated by the PR author, before
39            # the PR is approved and tested for merging.
40            # It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
41            # despite having different output on 32-bit vs 64-bit targets.
42            python2.7 ../x.py --stage 2 test src/test/mir-opt \
43                              --host='' --target=i686-unknown-linux-gnu && \
44            # Run the UI test suite again, but in `--pass=check` mode
45            #
46            # This is intended to make sure that both `--pass=check` continues to
47            # work.
48            #
49            python2.7 ../x.py --stage 2 test src/test/ui --pass=check \
50                              --host='' --target=i686-unknown-linux-gnu && \
51            # Run tidy at the very end, after all the other tests.
52            python2.7 ../x.py --stage 2 test src/tools/tidy