bpo-40280: Add --enable-wasm-dynamic-linking (GH-32253)

This commit is contained in:
Christian Heimes 2022-04-04 20:31:31 +03:00 committed by GitHub
parent 48269ea9fd
commit c9844cb8aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 194 additions and 49 deletions

View file

@ -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
---------------