Skip to content

Commit

Permalink
docs(linux): update emscripten bash setup
Browse files Browse the repository at this point in the history
Update the linux and macos bash setup to documents.
  • Loading branch information
rc-swag committed Nov 26, 2024
1 parent 7a53c89 commit f18bba2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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
cd upstream/emscripten
npm install
export EMSCRIPTEN_BASE="$(pwd)/upstream/emscripten"
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
13 changes: 13 additions & 0 deletions 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
cd upstream/emscripten
npm install
export EMSCRIPTEN_BASE="$(pwd)/upstream/emscripten"
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 f18bba2

Please sign in to comment.