3 RUN apt-get update && apt-get install -y --no-install-recommends \
18 COPY scripts/emscripten.sh /scripts/
19 RUN bash /scripts/emscripten.sh
21 COPY scripts/sccache.sh /scripts/
22 RUN sh /scripts/sccache.sh
24 ENV PATH=$PATH:/emsdk-portable
25 ENV PATH=$PATH:/emsdk-portable/upstream/emscripten/
26 ENV PATH=$PATH:/emsdk-portable/node/12.9.1_64bit/bin/
27 ENV BINARYEN_ROOT=/emsdk-portable/upstream/
29 ENV TARGETS=asmjs-unknown-emscripten
31 # Use -O1 optimizations in the link step to reduce time spent optimizing JS.
34 # Emscripten installation is user-specific
37 ENV SCRIPT python3 ../x.py --stage 2 test --host='' --target $TARGETS
39 # This is almost identical to the wasm32-unknown-emscripten target, so
40 # running with assertions again is not useful
41 ENV NO_DEBUG_ASSERTIONS=1
42 ENV NO_LLVM_ASSERTIONS=1