diff options
| author | LLLL Colonq <llll@colonq> | 2026-07-21 13:53:20 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-07-21 13:53:20 -0400 |
| commit | 3ec03ba57474aa4320cb7901980b55706adbc111 (patch) | |
| tree | 97fcf8d1825cd4bdda65c4b516853dfda60f3610 /2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh | |
| parent | 47c0d930736bb5247a7f7ba05c7d41e33038102a (diff) | |
Update
Diffstat (limited to '2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh')
| -rw-r--r-- | 2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh b/2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh new file mode 100644 index 0000000..b711b7f --- /dev/null +++ b/2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Install the Emscripten SDK into ./vendor/emsdk (needed only for the web build). +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +EMSDK_DIR="$ROOT/vendor/emsdk" + +if [ ! -d "$EMSDK_DIR" ]; then + echo ">> Cloning emsdk into $EMSDK_DIR" + git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$EMSDK_DIR" +fi + +cd "$EMSDK_DIR" +echo ">> Installing latest Emscripten toolchain (large download)..." +./emsdk install latest +./emsdk activate latest + +echo +echo ">> Done. Activate it in your shell with:" +echo " source $EMSDK_DIR/emsdk_env.sh" |
