]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/asmjs/Dockerfile
Auto merge of #45359 - arielb1:escaping-borrow, r=eddyb
[rust.git] / src / ci / docker / 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   python \
10   git \
11   cmake \
12   sudo \
13   gdb \
14   xz-utils
15
16 COPY scripts/emscripten.sh /scripts/
17 RUN bash /scripts/emscripten.sh
18
19 COPY scripts/sccache.sh /scripts/
20 RUN sh /scripts/sccache.sh
21
22 ENV PATH=$PATH:/emsdk-portable
23 ENV PATH=$PATH:/emsdk-portable/clang/e1.37.13_64bit/
24 ENV PATH=$PATH:/emsdk-portable/emscripten/1.37.13/
25 ENV PATH=$PATH:/emsdk-portable/node/4.1.1_64bit/bin/
26 ENV EMSCRIPTEN=/emsdk-portable/emscripten/1.37.13/
27 ENV BINARYEN_ROOT=/emsdk-portable/clang/e1.37.13_64bit/binaryen/
28 ENV EM_CONFIG=/emsdk-portable/.emscripten
29
30 ENV TARGETS=asmjs-unknown-emscripten
31
32 ENV RUST_CONFIGURE_ARGS --target=$TARGETS
33
34 ENV SCRIPT python2.7 ../x.py test --target $TARGETS src/test/run-pass