1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-09 17:44:48 +09:00

[wasm][mt] Add MT option to container configs (#99615)

* Add MT option.

* Add configuration, fix function not defined.
This commit is contained in:
Ilona Tomkowicz 2024-03-13 12:25:23 +01:00 committed by GitHub
parent 8790a2ffd4
commit cb7154df94
Signed by: github
GPG key ID: B5690EEEBB952194
4 changed files with 150 additions and 7 deletions

View file

@ -2,6 +2,26 @@
set -e
function wasm_common() {
# prebuild for WASM, so it is ready for wasm development
make -C src/mono/browser provision-wasm
export EMSDK_PATH=$PWD/src/mono/browser/emsdk
case "$1" in
wasm)
# Put your common commands for wasm here
./build.sh mono+libs -os browser -c Release
;;
wasm-multithread)
# Put your common commands for wasm-multithread here
./build.sh mono+libs -os browser -c Release /p:WasmEnableThreads=true
;;
*)
# install dotnet-serve for running wasm samples
./dotnet.sh tool install dotnet-serve --version 1.10.172 --tool-path ./.dotnet-tools-global
;;
esac
}
opt=$1
case "$opt" in
@ -20,13 +40,11 @@ case "$opt" in
;;
wasm)
# prebuild for WASM, so it is ready for wasm development
make -C src/mono/browser provision-wasm
export EMSDK_PATH=$PWD/src/mono/browser/emsdk
./build.sh mono+libs -os browser -c Release
wasm_common $opt
;;
# install dotnet-serve for running wasm samples
./dotnet.sh tool install dotnet-serve --version 1.10.172 --tool-path ./.dotnet-tools-global
wasm-multithread)
wasm_common $opt
;;
esac