Skip to content

Commit 18d8456

Browse files
authored
Modify memory and stack size settings in CMakeLists (#128)
Updated memory settings and stack size for the project.
1 parent d9f48e6 commit 18d8456

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,27 +218,18 @@ target_link_options(pyjs_runtime_browser
218218
PUBLIC "SHELL: -s EXPORT_NAME=\"createModule\""
219219
PUBLIC "SHELL: -s EXPORT_ALL=1"
220220
PUBLIC "SHELL: -s EXPORT_EXCEPTION_HANDLING_HELPERS"
221-
# PUBLIC "SHELL: -s EXPORT_ES6=0"
222-
# PUBLIC "SHELL: -s DEMANGLE_SUPPORT=0"
223-
# PUBLIC "SHELL: -s ASSERTIONS=0"
224221
PUBLIC "SHELL: -s ALLOW_MEMORY_GROWTH=1"
225-
# PUBLIC "SHELL: -s EXIT_RUNTIME=1"
226-
PUBLIC "SHELL: -s INITIAL_MEMORY=20971520"
227-
PUBLIC "SHELL: -s MAXIMUM_MEMORY=4GB"
228-
# PUBLIC "SHELL: -s WASM=1"
222+
PUBLIC "SHELL: -s STACK_SIZE=32mb"
223+
PUBLIC "SHELL: -s INITIAL_MEMORY=64MB"
229224
PUBLIC "SHELL: -s USE_PTHREADS=0"
230225
PUBLIC "SHELL: -s ENVIRONMENT=${ENVIRONMENT}"
231226
PUBLIC "SHELL: -fwasm-exceptions"
232227
PUBLIC "SHELL: -sSUPPORT_LONGJMP"
233228
PUBLIC "SHELL: -s MAIN_MODULE=1"
234-
# PUBLIC "SHELL: -s MAXIMUM_MEMORY=2GB"
235229
PUBLIC "SHELL: -s FORCE_FILESYSTEM"
236230
PUBLIC "SHELL: --post-js pyjs_post.js"
237231
PUBLIC "SHELL: --pre-js pyjs_pre.js"
238-
# PUBLIC "SHELL: -flto"
239-
# PUBLIC "SHELL: -lidbfs.js"
240232
PUBLIC "SHELL: -lembind"
241-
# PUBLIC "SHELL: -fsanitize=address"
242233
)
243234

244235

0 commit comments

Comments
 (0)