3 RUN apt-get update && apt-get install -y --no-install-recommends \
25 COPY scripts/sccache.sh /scripts/
26 RUN sh /scripts/sccache.sh
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
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
46 # This is intended to make sure that both `--pass=check` continues to
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