FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-156780: Emscripten: add missing EM_JS_DEPS by clementperon · Pull Request #156798 · python/cpython · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .c  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 8 additions & 0 deletions Python/emscripten_syscalls.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ EM_JS_MACROS(void, _emscripten_promising_main_js, (void), {
};
})

EM_JS_DEPS(_emscripten_promising_main,
"$FS,$PATH,$FS_getMode,$resolveGlobalSymbol,"
"emscripten_exit_with_live_runtime");

__attribute__((constructor)) void _emscripten_promising_main(void) {
_emscripten_promising_main_js();
}
Expand Down Expand Up @@ -199,6 +203,8 @@ EM_JS_MACROS(__externref_t, __maybe_fd_read_async, (
};
);

EM_JS_DEPS(__maybe_fd_read_async, "$SYSCALLS");

// Bind original fd_read syscall to __wasi_fd_read_orig().
__wasi_errno_t __wasi_fd_read_orig(__wasi_fd_t fd, const __wasi_iovec_t *iovs,
size_t iovs_len, __wasi_size_t *nread)
Expand Down Expand Up @@ -280,6 +286,8 @@ EM_JS_MACROS(__externref_t, __maybe_poll_async, (intptr_t fds, int nfds, int tim
})();
});

EM_JS_DEPS(__maybe_poll_async, "$FS");

// Bind original poll syscall to syscall_poll_orig().
int syscall_poll_orig(intptr_t fds, int nfds, int timeout)
__attribute__((__import_module__("env"),
Expand Down
3 changes: 3 additions & 0 deletions Python/emscripten_trampoline.c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ addOnPreRun(function setEmscriptenTrampoline() {
});
);

EM_JS_DEPS(_PyEM_TrampolineCall,
"$wasmTable,$wasmMemory,$addFunction,$addOnPreRun");

PyObject*
_PyEM_TrampolineCall(PyCFunctionWithKeywords func,
PyObject* self,
Expand Down
Loading

Back | FazBrowse Home | New Git URL