3 RUN apt-get update && apt-get install -y --no-install-recommends \
17 COPY scripts/emscripten.sh /scripts/
18 RUN bash /scripts/emscripten.sh
20 COPY scripts/sccache.sh /scripts/
21 RUN sh /scripts/sccache.sh
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/
28 ENV TARGETS=asmjs-unknown-emscripten
30 # Use -O1 optimizations in the link step to reduce time spent optimizing JS.
33 # Emscripten installation is user-specific
36 ENV SCRIPT python3 ../x.py test --target $TARGETS
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