]> git.proxmox.com Git - rustc.git/blob - src/ci/docker/disabled/asmjs/Dockerfile
New upstream version 1.45.0+dfsg1
[rustc.git] / src / ci / docker / disabled / asmjs / Dockerfile
1 FROM ubuntu:16.04
2
3 RUN 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
17 COPY scripts/emscripten.sh /scripts/
18 RUN bash /scripts/emscripten.sh
19
20 COPY scripts/sccache.sh /scripts/
21 RUN sh /scripts/sccache.sh
22
23 ENV PATH=$PATH:/emsdk-portable
24 ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
25 ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
26 ENV BINARYEN_ROOT=/emsdk-portable/upstream/
27
28 ENV TARGETS=asmjs-unknown-emscripten
29
30 # Use -O1 optimizations in the link step to reduce time spent optimizing JS.
31 ENV EMCC_CFLAGS=-O1
32
33 # Emscripten installation is user-specific
34 ENV NO_CHANGE_USER=1
35
36 ENV SCRIPT python3 ../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
40 ENV NO_DEBUG_ASSERTIONS=1
41 ENV NO_LLVM_ASSERTIONS=1