]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/host-x86_64/x86_64-gnu-llvm-13-stage1/Dockerfile
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / src / ci / docker / host-x86_64 / x86_64-gnu-llvm-13-stage1 / Dockerfile
1 FROM ubuntu:22.04
2
3 ARG DEBIAN_FRONTEND=noninteractive
4 RUN apt-get update && apt-get install -y --no-install-recommends \
5     g++ \
6     gcc-multilib \
7     make \
8     ninja-build \
9     file \
10     curl \
11     ca-certificates \
12     python2.7 \
13     git \
14     cmake \
15     sudo \
16     gdb \
17     llvm-13-tools \
18     llvm-13-dev \
19     libedit-dev \
20     libssl-dev \
21     pkg-config \
22     zlib1g-dev \
23     xz-utils \
24     nodejs \
25     && rm -rf /var/lib/apt/lists/*
26
27 COPY scripts/sccache.sh /scripts/
28 RUN sh /scripts/sccache.sh
29
30 # We are disabling CI LLVM since this builder is intentionally using a host
31 # LLVM, rather than the typical src/llvm-project LLVM.
32 ENV NO_DOWNLOAD_CI_LLVM 1
33
34 # Using llvm-link-shared due to libffi issues -- see #34486
35 ENV RUST_CONFIGURE_ARGS \
36     --build=x86_64-unknown-linux-gnu \
37     --llvm-root=/usr/lib/llvm-13 \
38     --enable-llvm-link-shared \
39     --set rust.thin-lto-import-instr-limit=10
40
41 ENV SCRIPT python2.7 ../x.py --stage 1 test --exclude src/tools/tidy && \
42     # Run the `mir-opt` tests again but this time for a 32-bit target.
43     # This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
44     # both 32-bit and 64-bit outputs updated by the PR author, before
45     # the PR is approved and tested for merging.
46     # It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
47     # despite having different output on 32-bit vs 64-bit targets.
48     python2.7 ../x.py --stage 1 test tests/mir-opt \
49     --host='' --target=i686-unknown-linux-gnu