From af877c19bbf5917fd41ff3173c01daa08a98864e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 22 Feb 2018 15:27:27 +0100 Subject: [PATCH] [build] Add a flag MODULARIZE when building with emscripten toolchain --- build/toolchain.emscripten.mak | 2 ++ ion/src/emscripten/simulator.html | 13 +++---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/build/toolchain.emscripten.mak b/build/toolchain.emscripten.mak index 49e4ecabd..a3b7baba2 100644 --- a/build/toolchain.emscripten.mak +++ b/build/toolchain.emscripten.mak @@ -49,5 +49,7 @@ ifeq ($(DEBUG),1) EMFLAGS += --profiling-funcs -s ASSERTIONS=1 endif +EMFLAGS += -s MODULARIZE=1 -s 'EXPORT_NAME="Epsilon"' + SFLAGS += $(EMFLAGS) LDFLAGS += $(EMFLAGS) -Oz -s EXPORTED_FUNCTIONS='["_main", "_IonEventsEmscriptenPushKey", "_IonEventsEmscriptenPushEvent"]' diff --git a/ion/src/emscripten/simulator.html b/ion/src/emscripten/simulator.html index 5b499a530..0f7cc6886 100644 --- a/ion/src/emscripten/simulator.html +++ b/ion/src/emscripten/simulator.html @@ -183,21 +183,14 @@
Save screenshot
+ -