]> git.proxmox.com Git - rustc.git/blob - src/ci/docker/host-x86_64/x86_64-gnu-llvm-8/Dockerfile
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / ci / docker / host-x86_64 / x86_64-gnu-llvm-8 / Dockerfile
1 FROM ubuntu:18.04
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4 g++ \
5 g++-arm-linux-gnueabi \
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-8-tools \
17 libedit-dev \
18 libssl-dev \
19 pkg-config \
20 zlib1g-dev \
21 xz-utils \
22 nodejs
23
24 COPY scripts/sccache.sh /scripts/
25 RUN sh /scripts/sccache.sh
26
27 # using llvm-link-shared due to libffi issues -- see #34486
28 ENV RUST_CONFIGURE_ARGS \
29 --build=x86_64-unknown-linux-gnu \
30 --llvm-root=/usr/lib/llvm-8 \
31 --enable-llvm-link-shared \
32 --set rust.thin-lto-import-instr-limit=10
33
34 ENV SCRIPT python2.7 ../x.py --stage 2 test --exclude src/tools/tidy && \
35 # Run the `mir-opt` tests again but this time for a 32-bit target.
36 # This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
37 # both 32-bit and 64-bit outputs updated by the PR author, before
38 # the PR is approved and tested for merging.
39 # It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
40 # despite having different output on 32-bit vs 64-bit targets.
41 #
42 # HACK(eddyb) `armv5te` is used (not `i686`) to support older LLVM than LLVM 9:
43 # https://github.com/rust-lang/compiler-builtins/pull/311#issuecomment-612270089.
44 # This also requires `--pass=build` because we can't execute the tests
45 # on the `x86_64` host when they're built as `armv5te` binaries.
46 # (we're only interested in the MIR output, so this doesn't matter)
47 python2.7 ../x.py --stage 2 test src/test/mir-opt --pass=build \
48 --host='' --target=armv5te-unknown-linux-gnueabi && \
49 # Run the UI test suite again, but in `--pass=check` mode
50 #
51 # This is intended to make sure that both `--pass=check` continues to
52 # work.
53 #
54 # FIXME: We ideally want to test this in 32-bit mode, but currently
55 # (due to the LLVM problems mentioned above) that isn't readily
56 # possible.
57 python2.7 ../x.py --stage 2 test src/test/ui --pass=check && \
58 # Run tidy at the very end, after all the other tests.
59 python2.7 ../x.py --stage 2 test src/tools/tidy
60
61 # The purpose of this container isn't to test with debug assertions and
62 # this is run on all PRs, so let's get speedier builds by disabling these extra
63 # checks.
64 ENV NO_DEBUG_ASSERTIONS=1
65 ENV NO_LLVM_ASSERTIONS=1