3 ARG DEBIAN_FRONTEND=noninteractive
4 RUN apt-get update && apt-get install -y --no-install-recommends \
26 COPY scripts/sccache.sh /scripts/
27 RUN sh /scripts/sccache.sh
29 # using llvm-link-shared due to libffi issues -- see #34486
30 ENV RUST_CONFIGURE_ARGS \
31 --build=x86_64-unknown-linux-gnu \
32 --llvm-root=/usr/lib/llvm-12 \
33 --enable-llvm-link-shared \
34 --set rust.thin-lto-import-instr-limit=10
36 ENV SCRIPT python2.7 ../x.py --stage 2 test --exclude src/tools/tidy && \
37 # Run the `mir-opt` tests again but this time for a 32-bit target.
38 # This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
39 # both 32-bit and 64-bit outputs updated by the PR author, before
40 # the PR is approved and tested for merging.
41 # It will also detect tests lacking `// EMIT_MIR_FOR_EACH_BIT_WIDTH`,
42 # despite having different output on 32-bit vs 64-bit targets.
43 python2.7 ../x.py --stage 2 test src/test/mir-opt \
44 --host='' --target=i686-unknown-linux-gnu && \
45 # Run the UI test suite again, but in `--pass=check` mode
47 # This is intended to make sure that both `--pass=check` continues to
50 python2.7 ../x.py --stage 2 test src/test/ui --pass=check \
51 --host='' --target=i686-unknown-linux-gnu && \
52 # Run tidy at the very end, after all the other tests.
53 python2.7 ../x.py --stage 2 test src/tools/tidy