Lines Matching full:emscripten
6 compilation of CPython to WebAssembly (WASM). Python supports Emscripten
7 (*wasm32-emscripten*) and WASI (*wasm32-wasi*) targets. Emscripten builds
15 ## wasm32-emscripten build
17 For now the build system has two target flavors. The ``Emscripten/browser``
18 target (``--with-emscripten-target=browser``) is optimized for browsers.
20 support. The ``Emscripten/node`` target has threading enabled and can
23 Cross compiling to the wasm32-emscripten platform needs the
24 [Emscripten](https://emscripten.org/) SDK and a build Python interpreter.
25 Emscripten 3.1.19 or newer are recommended. All commands below are relative
28 Christian Heimes maintains a container image with Emscripten SDK, Python
59 ### Cross-compile to wasm32-emscripten for browser
62 ./Tools/wasm/wasm_build.py emscripten-browser
68 mkdir -p builddir/emscripten-browser
69 pushd builddir/emscripten-browser
71 CONFIG_SITE=../../Tools/wasm/config.site-wasm32-emscripten \
73 --host=wasm32-unknown-emscripten \
75 --with-emscripten-target=browser \
91 and open http://localhost:8000/builddir/emscripten-browser/python.html . This
96 ### Cross compile to wasm32-emscripten for node
99 ./Tools/wasm/wasm_build.py emscripten-browser-dl
105 mkdir -p builddir/emscripten-node-dl
106 pushd builddir/emscripten-node-dl
108 CONFIG_SITE=../../Tools/wasm/config.site-wasm32-emscripten \
110 --host=wasm32-unknown-emscripten \
112 --with-emscripten-target=node \
121 …ds --experimental-wasm-bulk-memory --experimental-wasm-bigint builddir/emscripten-node-dl/python.js
126 # wasm32-emscripten limitations and issues
128 Emscripten before 3.1.8 has known bugs that can cause memory corruption and
134 - Python's socket module does not work with Emscripten's emulated POSIX
178 [don't work](https://github.com/emscripten-core/emscripten/issues/16158)
201 ## wasm32-emscripten in browsers
213 ## wasm32-emscripten in node
220 ## wasm64-emscripten
286 A lot of Emscripten limitations also apply to WASI. Noticable restrictions
328 if sys.platform == "emscripten":
329 # Python on Emscripten
345 sysname='Emscripten',
346 nodename='emscripten',
354 'emscripten'
392 Emscripten SDK and WASI SDK define several built-in macros. You can dump a
398 // Python on Emscripten
405 * Emscripten ``__EMSCRIPTEN__`` (also ``EMSCRIPTEN``)
406 * Emscripten version ``__EMSCRIPTEN_major__``, ``__EMSCRIPTEN_minor__``, ``__EMSCRIPTEN_tiny__``
438 ### Install [Emscripten SDK](https://emscripten.org/docs/getting_started/downloads.html)
443 git clone https://github.com/emscripten-core/emsdk.git /opt/emsdk
460 Emscripten SDK provides static builds of core libraries without PIC