Skip to content

Commit

Permalink
Merge pull request #12701 from keymanapp/docs/linux-macos-emscripten-…
Browse files Browse the repository at this point in the history
…setup

docs(common): linux and macOS emscripten setup
  • Loading branch information
rc-swag authored Nov 28, 2024
2 parents 8e02074 + d86e499 commit 38aa5c8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion docs/build/linux-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,23 @@ git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.58
./emsdk activate 3.1.58
export EMSCRIPTEN_BASE="$(pwd)/upstream/emscripten"
cd upstream/emscripten
npm install
export EMSCRIPTEN_BASE="$(pwd)"
echo "export EMSCRIPTEN_BASE=\"$EMSCRIPTEN_BASE\"" >> .bashrc
```

If you are updating an existing install of Emscripten:

```bash
cd emsdk
git pull
./emsdk install 3.1.58
./emsdk activate 3.1.58
cd upstream/emscripten
npm install
```

> ![WARNING]
> Don't put EMSDK on the path, i.e. don't source `emsdk_env.sh`.
>
Expand Down
15 changes: 14 additions & 1 deletion docs/build/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,23 @@ git clone https://github.com/emscripten-core/emsdk
cd emsdk
emsdk install 3.1.58
emsdk activate 3.1.58
export EMSCRIPTEN_BASE="$(pwd)/upstream/emscripten"
cd upstream/emscripten
npm install
export EMSCRIPTEN_BASE="$(pwd)"
echo "export EMSCRIPTEN_BASE=\"$EMSCRIPTEN_BASE\"" >> .bashrc
```

If you are updating an existing install of Emscripten:

```bash
cd emsdk
git pull
emsdk install 3.1.58
emsdk activate 3.1.58
cd upstream/emscripten
npm install
```

You will want to add `EMSCRIPTEN_BASE` to your .bashrc.

> ![WARNING]
Expand Down

0 comments on commit 38aa5c8

Please sign in to comment.