Skip to content

Commit 186867e

Browse files
committed
Add info on installing emcc
1 parent 7bb29f6 commit 186867e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

getting-started/setup-building.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,16 @@ C compiler just like building for :ref:`Unix <unix-compiling>` as well as:
477477
1. The Emscripten compiler
478478
2. Node.js
479479

480+
To install the Emscripten compiler we recommend:
481+
482+
.. code-block:: sh
483+
484+
# Install Emscripten
485+
git clone emscripten/emsdk
486+
./emsdk/emsdk install 4.0.5
487+
./emsdk/emsdk activate 4.0.5
488+
source ./emsdk/emsdk_env.sh
489+
480490
Building for Emscripten requires doing a cross-build where you have a *build*
481491
Python to help produce a Emscripten build of CPython. This means you build
482492
CPython twice: once to have a version of Python for the build system to use and

0 commit comments

Comments
 (0)