fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.1 KiB47 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  python3 \
10  git \
11  cmake \
12  sudo \
13  gdb \
14  xz-utils \
15  bzip2
16
17COPY scripts/emscripten.sh /scripts/
18RUN bash /scripts/emscripten.sh
19
20COPY scripts/sccache.sh /scripts/
21RUN sh /scripts/sccache.sh
22
23# emcc seems to need python to specifically be "python" and not "python3"
24RUN ln `which python3` /usr/bin/python
25
26ENV PATH=$PATH:/emsdk-portable
27ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
28ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
29ENV BINARYEN_ROOT=/emsdk-portable/upstream/
30
31ENV TARGETS=wasm32-unknown-emscripten
32
33# Use -O1 optimizations in the link step to reduce time spent optimizing.
34ENV EMCC_CFLAGS=-O1
35
36# Emscripten installation is user-specific
37ENV NO_CHANGE_USER=1
38
39# FIXME: Re-enable these tests once https://github.com/rust-lang/cargo/pull/7476
40# is picked up by CI
41ENV SCRIPT python3 ../x.py test --target $TARGETS \
42    --exclude src/libcore \
43    --exclude src/liballoc \
44    --exclude src/libproc_macro \
45    --exclude src/libstd \
46    --exclude src/libterm \
47    --exclude src/libtest