fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
945 B41 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  python \
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
23ENV PATH=$PATH:/emsdk-portable
24ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
25ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
26ENV BINARYEN_ROOT=/emsdk-portable/upstream/
27
28ENV TARGETS=asmjs-unknown-emscripten
29
30# Use -O1 optimizations in the link step to reduce time spent optimizing JS.
31ENV EMCC_CFLAGS=-O1
32
33# Emscripten installation is user-specific
34ENV NO_CHANGE_USER=1
35
36ENV SCRIPT python2.7 ../x.py test --target $TARGETS
37
38# This is almost identical to the wasm32-unknown-emscripten target, so
39# running with assertions again is not useful
40ENV NO_DEBUG_ASSERTIONS=1
41ENV NO_LLVM_ASSERTIONS=1