Skip to content

Commit e011365

Browse files
committed
Use git to acquire emsdk
1 parent d3c7de8 commit e011365

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

ci/emscripten.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,18 @@ exit 1
2828
set -x
2929
}
3030

31-
cd /
32-
curl --retry 5 -L https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | \
33-
tar -xz
34-
31+
git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
3532
cd /emsdk-portable
36-
./emsdk update
37-
hide_output ./emsdk install 1.38.37
38-
./emsdk activate 1.38.37
33+
# TODO: switch to an upstream install once
34+
# https://github.com/rust-lang/rust/pull/63649 lands
35+
hide_output ./emsdk install 1.38.42
36+
./emsdk activate 1.38.42
3937

4038
# Compile and cache libc
4139
# shellcheck disable=SC1091
4240
source ./emsdk_env.sh
4341
echo "main(){}" > a.c
4442
HOME=/emsdk-portable/ emcc a.c
45-
HOME=/emsdk-portable/ emcc -s BINARYEN=1 a.c
4643
rm -f a.*
4744

4845
# Make emsdk usable by any user

0 commit comments

Comments
 (0)