From 6229ed696d9f192e70e1514a84924db89d83e4ac Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Sun, 19 Jul 2026 16:34:31 +0200 Subject: [PATCH] revert --- .../download-build-install-wasi-sdk.sh | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/web-wasi-emulated-threads/download-build-install-wasi-sdk.sh b/web-wasi-emulated-threads/download-build-install-wasi-sdk.sh index 07a4995..1a35663 100755 --- a/web-wasi-emulated-threads/download-build-install-wasi-sdk.sh +++ b/web-wasi-emulated-threads/download-build-install-wasi-sdk.sh @@ -17,22 +17,6 @@ git fetch origin --tags git remote add upstream https://github.com/WebAssembly/wasi-sdk git fetch upstream wasi-sdk-${WASI_VERSION} -# Recent wasmtime releases require the threads and shared-memory wasm -# features to be enabled explicitly. WASI_SDK_RUNWASI is a single cache -# variable shared by every test target (wasi, wasip1, wasip2, and their -# -threads variants), so overriding it globally breaks the non-threads -# targets. Instead, route only the `*-threads` targets through the -# wrapper by patching the per-test runner selection in tests/CMakeLists.txt. -cat > /usr/local/bin/wasmtime-run-threads.sh <<'EOS' -#!/usr/bin/env bash -exec wasmtime run -W threads=y,shared-memory=y -S threads=y,cli=y "$@" -EOS -chmod +x /usr/local/bin/wasmtime-run-threads.sh -sed -i '/if(target MATCHES threads)/a\ - if(runwasi)\ - set(runwasi "/usr/local/bin/wasmtime-run-threads.sh")\ - endif()' tests/CMakeLists.txt - ./ci/build.sh cd build/dist tar xzf wasi-toolchain-*.tar.gz --strip-components=1 -C /opt/wasi-sdk