Skip to content

Commit dde19fa

Browse files
Add the ASYNCIFY_STACK_SIZE to the MEM_SIZE_SETTINGS (#23357)
This allows folks to use kb/mb/gb with `ASYNCIFY_STACK_SIZE`.
1 parent f8f9611 commit dde19fa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/test_other.py

+2
Original file line numberDiff line numberDiff line change
@@ -10832,6 +10832,8 @@ def test_asyncify_advise(self):
1083210832
self.set_setting('ASYNCIFY')
1083310833
self.set_setting('ASYNCIFY_ADVISE')
1083410834
self.set_setting('ASYNCIFY_IMPORTS', ['async_func'])
10835+
# Also check that ASYNCIFY_STACK_SIZE can be specified using a memory size suffix
10836+
self.set_setting('ASYNCIFY_STACK_SIZE', ['64kb'])
1083510837

1083610838
out = self.run_process([EMCC, src, '-o', 'asyncify_advise.js'] + self.get_emcc_args(), stdout=PIPE).stdout
1083710839
self.assertContained('[asyncify] main can', out)

tools/settings.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
'MEMORY_GROWTH_GEOMETRIC_CAP',
2424
'GL_MAX_TEMP_BUFFER_SIZE',
2525
'MAXIMUM_MEMORY',
26-
'DEFAULT_PTHREAD_STACK_SIZE'
26+
'DEFAULT_PTHREAD_STACK_SIZE',
27+
'ASYNCIFY_STACK_SIZE',
2728
}
2829

2930
PORTS_SETTINGS = {

0 commit comments

Comments
 (0)