libc-rs/ci/emscripten-entry.sh
2020-08-20 12:53:03 +09:00

13 lines
311 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
# shellcheck disable=SC1091
source /emsdk-portable/emsdk_env.sh &> /dev/null
# emsdk-portable provides a node binary, but we need version 8 to run wasm
# NOTE: Do not forget to sync Node.js version with `emscripten.sh`!
export PATH="/node-v12.18.3-linux-x64/bin:$PATH"
exec "$@"