fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
877 B37 linesraw
1FROM ubuntu:18.04
2
3RUN apt-get update && apt-get install -y --no-install-recommends \
4  g++ \
5  make \
6  file \
7  curl \
8  ca-certificates \
9  python2.7 \
10  git \
11  cmake \
12  sudo \
13  gdb \
14  llvm-7-tools \
15  libedit-dev \
16  libssl-dev \
17  pkg-config \
18  zlib1g-dev \
19  xz-utils
20
21COPY scripts/sccache.sh /scripts/
22RUN sh /scripts/sccache.sh
23
24# using llvm-link-shared due to libffi issues -- see #34486
25ENV RUST_CONFIGURE_ARGS \
26      --build=x86_64-unknown-linux-gnu \
27      --llvm-root=/usr/lib/llvm-7 \
28      --enable-llvm-link-shared \
29      --set rust.thin-lto-import-instr-limit=10
30
31ENV SCRIPT python2.7 ../x.py test src/tools/tidy && python2.7 ../x.py test
32
33# The purpose of this container isn't to test with debug assertions and
34# this is run on all PRs, so let's get speedier builds by disabling these extra
35# checks.
36ENV NO_DEBUG_ASSERTIONS=1
37ENV NO_LLVM_ASSERTIONS=1