Skip to content

Commit 2ec6b82

Browse files
committed
fix web shell memory issue
1 parent 70ec55c commit 2ec6b82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: CMakeLists.txt

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ endif()
1818
if(EMSCRIPTEN)
1919
add_compile_options(-fexceptions)
2020
add_link_options(-fexceptions)
21+
22+
# Memory configuration
23+
add_compile_options(-sALLOW_MEMORY_GROWTH=1)
24+
add_compile_options(-sMAXIMUM_MEMORY=64MB)
25+
add_link_options(-sALLOW_MEMORY_GROWTH=1)
26+
add_link_options(-sMAXIMUM_MEMORY=64MB)
2127
endif()
2228

2329
# People keep running CMake in the wrong folder, completely nuking their project or creating weird bugs.

0 commit comments

Comments
 (0)