From a611d0bc87e1b665e96bc90a8ae0d22866d5da08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 15 Aug 2015 11:27:38 -0700 Subject: [PATCH] asmjs: Trying out async. --- scripts/toolchain.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/toolchain.lua b/scripts/toolchain.lua index 2211d7b..173ca27 100755 --- a/scripts/toolchain.lua +++ b/scripts/toolchain.lua @@ -986,7 +986,12 @@ function strip() configuration { "asmjs" } postbuildcommands { "$(SILENT) echo Running asmjs finalize.", - "$(SILENT) $(EMSCRIPTEN)/emcc -O2 -s TOTAL_MEMORY=268435456 \"$(TARGET)\" -o \"$(TARGET)\".html" + "$(SILENT) $(EMSCRIPTEN)/emcc -O2 " +-- .. "-s EMTERPRETIFY=1 " +-- .. "-s EMTERPRETIFY_ASYNC=1 " + .. "-s TOTAL_MEMORY=268435456 " + .. "--memory-init-file 1 " + .. "\"$(TARGET)\" -o \"$(TARGET)\".html" -- ALLOW_MEMORY_GROWTH }