File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 31
31
run: |
32
32
mkdir dist
33
33
sudo apt-get update -y
34
+ wget --no-verbose https://github.com/dicej/wasi-sdk/releases/download/filesystem-fix-v3/wasi-sdk-20.25g964191c91aac-linux.tar.gz
35
+ tar -xvf wasi-sdk-20.25g964191c91aac-linux.tar.gz
36
+ export WASI_SDK_PREFIX=$PWD/wasi-sdk-20.25g964191c91aac
34
37
bash ./build-engine.sh release
35
38
tar -a -cf dist/spidermonkey-wasm-static-lib_release.tar.gz release
36
39
rm -rf release obj-release
Original file line number Diff line number Diff line change @@ -110,6 +110,15 @@ python3 \
110
110
111
111
cd "$working_dir"
112
112
113
+ if [[ -z "${WASI_SDK_PREFIX}" ]]; then
114
+ echo "WASI_SDK_PREFIX not set, using default compiler and sysroot"
115
+ else
116
+ mv ~/.mozbuild/clang ~/.mozbuild/clang.orig
117
+ mv ~/.mozbuild/sysroot-wasm32-wasi ~/.mozbuild/sysroot-wasm32-wasi.orig
118
+ ln -s "${WASI_SDK_PREFIX}" ~/.mozbuild/clang
119
+ ln -s "${WASI_SDK_PREFIX}/share/wasi-sysroot" ~/.mozbuild/sysroot-wasm32-wasi
120
+ fi
121
+
113
122
# Build SpiderMonkey for WASI
114
123
MOZCONFIG="${mozconfig}" \
115
124
MOZ_FETCHES_DIR=~/.mozbuild \
You can’t perform that action at this time.
0 commit comments