diff options
author | Christian Heimes <christian@python.org> | 2022-04-04 17:31:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 17:31:31 (GMT) |
commit | c9844cb8aa9615cdc8770d1e43ce6e2ac3efd836 (patch) | |
tree | 4db2f08a3fa9f2f91d78a54e5d59315804c89670 /Doc/using | |
parent | 48269ea9fdbc5804f80962364f95e69097c417ba (diff) | |
download | cpython-c9844cb8aa9615cdc8770d1e43ce6e2ac3efd836.zip cpython-c9844cb8aa9615cdc8770d1e43ce6e2ac3efd836.tar.gz cpython-c9844cb8aa9615cdc8770d1e43ce6e2ac3efd836.tar.bz2 |
bpo-40280: Add --enable-wasm-dynamic-linking (GH-32253)
Diffstat (limited to 'Doc/using')
-rw-r--r-- | Doc/using/configure.rst | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index debbee7..b46157c 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -52,11 +52,13 @@ General Options Set the Python executable suffix to *SUFFIX*. The default suffix is ``.exe`` on Windows and macOS (``python.exe`` - executable), ``.wasm`` on Emscripten (``python.wasm`` executable), and - an empty string on other platforms (``python`` executable). + executable), ``.js`` on Emscripten node, ``.html`` on Emscripten browser, + ``.wasm`` on WASI, and an empty string on other platforms (``python`` + executable). .. versionchanged:: 3.11 - The default suffix on Emscripten platform is ``.wasm``. + The default suffix on WASM platform is one of ``.js``, ``.html`` + or ``.wasm``. .. cmdoption:: --with-tzpath=<list of absolute paths separated by pathsep> @@ -141,6 +143,27 @@ General Options .. versionadded:: 3.11 +WebAssemby Options +------------------ + +.. cmdoption:: --with-emscripten-target=[browser|node] + + Set build flavor for ``wasm32-emscripten``. + + * ``browser`` (default): preload minimal stdlib, default MEMFS. + * ``node``: NODERAWFS and pthread support. + + .. versionadded:: 3.11 + +.. cmdoption:: --enable-wasm-dynamic-linking + + Turn on dynamic linking support for WASM. + + Dynamic linking enables ``dlopen``. File size of the executable + increases due to limited dead code elimination and additional features. + + .. versionadded:: 3.11 + Install Options --------------- |