Fix wasm OOM on large models: 32mb stack, raise MAXIMUM_MEMORY to 4gb.

PiperOrigin-RevId: 926060014
Change-Id: I8c4e152321737b1f4cc963f3c6c424af2fe951b4
This commit is contained in:
Kevin Zakka
2026-06-03 08:58:20 -07:00
committed by Copybara-Service
parent 0897e3aec1
commit 25afa6b732
+2 -1
View File
@@ -120,8 +120,9 @@ if(EMSCRIPTEN)
-sASYNCIFY=1
-sFETCH=1
-sGL_PREINITIALIZED_CONTEXT=1
-sSTACK_SIZE=512mb
-sSTACK_SIZE=32mb
-sINITIAL_MEMORY=1024mb
-sMAXIMUM_MEMORY=4gb
-sASSERTIONS=1
-fexceptions
-g