瀏覽代碼

Use 256MB for asmjs.

Branimir Karadžić 11 年之前
父節點
當前提交
1c1d89814b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      premake/toolchain.lua

+ 2 - 1
premake/toolchain.lua

@@ -712,7 +712,8 @@ function strip()
 	configuration { "asmjs" }
 	configuration { "asmjs" }
 		postbuildcommands {
 		postbuildcommands {
 			"@echo Running asmjs finalize.",
 			"@echo Running asmjs finalize.",
-			"@$(EMSCRIPTEN)/emcc -O2 \"$(TARGET)\" -o \"$(TARGET)\".html"
+			"@$(EMSCRIPTEN)/emcc -O2 -s TOTAL_MEMORY=268435456 \"$(TARGET)\" -o \"$(TARGET)\".html"
+			-- ALLOW_MEMORY_GROWTH
 		}
 		}
 
 
 	configuration {} -- reset configuration
 	configuration {} -- reset configuration