-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Enable EXPORT_ALL in main modules with the wasm backend #10079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
24c7157
7925874
7132b9f
c7ee0b2
f4ed6e3
94c4bc4
618de01
10500e5
97b0f5a
7e398ff
2e18add
637e25e
460f247
6b5d0ea
8ea0c49
cbd5965
a09b98c
a5bc081
2f91aeb
7f0c7a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1151,11 +1151,14 @@ def check(input_file): | |
|
|
||
| if shared.Settings.MAIN_MODULE: | ||
| assert not shared.Settings.SIDE_MODULE | ||
| if shared.Settings.MAIN_MODULE != 2: | ||
| if shared.Settings.MAIN_MODULE == 1: | ||
| shared.Settings.INCLUDE_FULL_LIBRARY = 1 | ||
| shared.Settings.EXPORT_ALL = 1 | ||
| elif shared.Settings.SIDE_MODULE: | ||
| assert not shared.Settings.MAIN_MODULE | ||
| options.memory_init_file = False # memory init file is not supported with asm.js side modules, must be executable synchronously (for dlopen) | ||
| if not shared.Settings.WASM_BACKEND: | ||
| shared.Settings.EXPORT_ALL = 1 | ||
|
||
|
|
||
| if shared.Settings.MAIN_MODULE or shared.Settings.SIDE_MODULE: | ||
| assert shared.Settings.ASM_JS, 'module linking requires asm.js output (-s ASM_JS=1)' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| ___errno_location | ||
| __apply_relocations | ||
| _main | ||
| _malloc | ||
| dynCall_X | ||
| dynCall_ii | ||
| dynCall_iiii | ||
| dynCall_iiiii | ||
| stackAlloc | ||
| ___errno_location | ||
| __apply_relocations | ||
| _main | ||
| _malloc | ||
| dynCall_X | ||
| dynCall_ii | ||
| dynCall_iiii | ||
| dynCall_iiiii | ||
| stackAlloc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ $___overflow | |
| $___stdio_write | ||
| $___towrite | ||
| $__apply_relocations | ||
| $_fwrite | ||
| $_main | ||
| $_malloc | ||
| $_memcpy | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| STACKTOP | ||
| ___wasi_fd_write | ||
| __memory_base | ||
| __table_base | ||
| _emscripten_get_heap_size | ||
| _emscripten_memcpy_big | ||
| _emscripten_resize_heap | ||
| abort | ||
| fb | ||
| gb | ||
| memory | ||
| setTempRet0 | ||
| table | ||
| STACKTOP | ||
| ___wasi_fd_write | ||
| __memory_base | ||
| __table_base | ||
| _emscripten_get_heap_size | ||
| _emscripten_memcpy_big | ||
| _emscripten_resize_heap | ||
| abort | ||
| fb | ||
| gb | ||
| memory | ||
| setTempRet0 | ||
| table |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| STACKTOP | ||
| ___wasi_fd_write | ||
| __memory_base | ||
| __table_base | ||
| _emscripten_get_heap_size | ||
| _emscripten_memcpy_big | ||
| _emscripten_resize_heap | ||
| abort | ||
| fb | ||
| gb | ||
| memory | ||
| setTempRet0 | ||
| table | ||
| STACKTOP | ||
| ___wasi_fd_write | ||
| __memory_base | ||
| __table_base | ||
| _emscripten_get_heap_size | ||
| _emscripten_memcpy_big | ||
| _emscripten_resize_heap | ||
| abort | ||
| fb | ||
| gb | ||
| memory | ||
| setTempRet0 | ||
| table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to do this both for SIDE_MODULE=1 and MAIN_MODULE=1, down below on ling 1170 would make sense to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still needs doing I think.