Skip to content

Commit

Permalink
Update emscripten.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Dec 30, 2019
1 parent 10c34a6 commit 826d9e4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
17 changes: 16 additions & 1 deletion docker/Dockerfile.asmjs-unknown-emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ RUN /common.sh
COPY cmake.sh /
RUN /cmake.sh

RUN apt-get install -y --no-install-recommends python
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
make \
file \
curl \
ca-certificates \
python \
git \
cmake \
sudo \
gdb \
xz-utils \
bzip2

COPY emscripten.sh /
RUN /emscripten.sh
Expand All @@ -15,3 +27,6 @@ COPY emscripten-entry.sh /
ENTRYPOINT ["/emscripten-entry.sh"]

ENV CARGO_TARGET_ASMJS_UNKNOWN_EMSCRIPTEN_RUNNER=node

# Prevent 'wasm2js does not support source maps yet' error.
ENV RUSTFLAGS='-C debuginfo=0'
14 changes: 13 additions & 1 deletion docker/Dockerfile.wasm32-unknown-emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ RUN /common.sh
COPY cmake.sh /
RUN /cmake.sh

RUN apt-get install -y --no-install-recommends python
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
make \
file \
curl \
ca-certificates \
python \
git \
cmake \
sudo \
gdb \
xz-utils \
bzip2

COPY emscripten.sh /
RUN /emscripten.sh
Expand Down
4 changes: 2 additions & 2 deletions docker/emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ main() {

export HOME=/emsdk-portable/

./emsdk install sdk-1.38.15-64bit
./emsdk activate sdk-1.38.15-64bit
./emsdk install 1.38.46-upstream
./emsdk activate 1.38.46-upstream

# Compile and cache libc
source ./emsdk_env.sh
Expand Down

0 comments on commit 826d9e4

Please sign in to comment.