fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
804 B36 linesraw
1FROM ubuntu:16.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  bzip2 \
14  xz-utils \
15  wget \
16  libssl-dev \
17  bsdtar \
18  pkg-config
19
20
21COPY dist-x86_64-dragonfly/build-toolchain.sh /tmp/
22COPY dist-x86_64-dragonfly/patch-toolchain /tmp/
23RUN /tmp/build-toolchain.sh /tmp/patch-toolchain
24
25COPY scripts/sccache.sh /scripts/
26RUN sh /scripts/sccache.sh
27
28ENV \
29    AR_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-ar \
30    CC_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-gcc \
31    CXX_x86_64_unknown_dragonfly=x86_64-unknown-dragonfly-g++
32
33ENV HOSTS=x86_64-unknown-dragonfly
34
35ENV RUST_CONFIGURE_ARGS --enable-extended
36ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS