Skip to content

Commit

Permalink
Update docker image set max mem to >2gb mode
Browse files Browse the repository at this point in the history
  • Loading branch information
texodus committed Apr 14, 2020
1 parent 7e80b74 commit 95eb1c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cpp/perspective/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ if (PSP_WASM_BUILD)
-s MODULARIZE=1 \
-s EXPORT_NAME=\"load_perspective\" \
-s EXPORT_ES6=1 \
-s MAXIMUM_MEMORY=-1 \
-s USE_ES6_IMPORT_META=0 \
-s EXPORTED_FUNCTIONS=\"['_main']\" \
")
Expand All @@ -243,7 +244,7 @@ if (PSP_WASM_BUILD)
set(OPT_FLAGS " \
-O3 \
-g0 \
--llvm-lto 3 \
-flto \
--closure 1 \
-s AGGRESSIVE_VARIABLE_ELIMINATION=1 \
")
Expand Down
4 changes: 1 addition & 3 deletions docker/emsdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FROM debian:stretch AS stage_build
# -------------------------------- STAGE BUILD --------------------------------
# ------------------------------------------------------------------------------

ENV EMSCRIPTEN_SDK 1.38.46-upstream
ENV EMSCRIPTEN_SDK 1.39.12
ENV EMSDK_CHANGESET master

# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -433,8 +433,6 @@ RUN printf '#include <iostream>\n#include <emscripten.h>\n#include <emscripten/b
RUN em++ --std=c++14 -O3 test.cpp -o test.js --closure 1
RUN node test.js

RUN embuilder.py build libc-extras

RUN cd /
RUN rm -fr /tmp/emscripten_test

Expand Down

0 comments on commit 95eb1c2

Please sign in to comment.