Pin emscripten/emsdk Docker version

Fixes issues caused by incompatible changes in Emscripten since the
time that tree-sitter was built.
This commit is contained in:
Vladimir Panteleev 2021-06-18 11:04:18 +00:00
parent d7746bec99
commit 725f3f7f2b
No known key found for this signature in database
GPG key ID: 5004F0FAD051576D
3 changed files with 7 additions and 7 deletions

View file

@ -61,7 +61,7 @@ pub fn compile_language_to_wasm(language_dir: &Path, force_docker: bool) -> Resu
}
// Run `emcc` in a container using the `emscripten-slim` image
command.args(&["emscripten/emsdk", "emcc"]);
command.args(&["emscripten/emsdk:2.0.11", "emcc"]);
} else {
return Err(anyhow!(
"You must have either emcc or docker on your PATH to run this command"

View file

@ -63,11 +63,11 @@ emcc=
if which emcc > /dev/null && [[ "$force_docker" == "0" ]]; then
emcc=emcc
elif which docker > /dev/null; then
emcc="docker run \
--rm \
-v $(pwd):/src:Z \
-u $(id -u) \
emscripten/emsdk \
emcc="docker run \
--rm \
-v $(pwd):/src:Z \
-u $(id -u) \
emscripten/emsdk:2.0.11 \
emcc"
else
echo 'You must have either `docker` or `emcc` on your PATH to run this script'

View file

@ -2,7 +2,7 @@
set -e
EMSCRIPTEN_VERSION=2.0.9
EMSCRIPTEN_VERSION=2.0.11
mkdir -p target
EMSDK_DIR="./target/emsdk"