From ce12493ebf24218cae0dff2c251851d225c025ea Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sat, 10 Aug 2024 16:34:13 +0900 Subject: [PATCH] export memory for the C wasi-threads test module wasi requires the memory exported as "memory". certain runtimes actually requires it. (eg. wasmtime) cf. https://github.com/WebAssembly/wasi-sdk/pull/297 also, bump the wasi-sdk version because this doesn't work with an old wasm-ld. --- scripts/update-proposal-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update-proposal-tests.sh b/scripts/update-proposal-tests.sh index 2d4a08ff..8ccb6005 100755 --- a/scripts/update-proposal-tests.sh +++ b/scripts/update-proposal-tests.sh @@ -5,7 +5,7 @@ REPOS=( "wasi-threads" ) -WASI_VERSION=20 +WASI_VERSION=22 WASI_SDK_DIR=$(pwd)/wasi-sdk BASE_BRANCH="prod/testsuite-base" PROPOSALS_DIR="tests/proposals" @@ -25,7 +25,7 @@ function install_wasi_sdk() function build_wasi-threads() { - CC="$WASI_SDK_DIR/bin/clang -pthread -Wl,--import-memory --target=wasm32-wasi-threads" ./build.sh + CC="$WASI_SDK_DIR/bin/clang -pthread -Wl,--import-memory -Wl,--export-memory --target=wasm32-wasi-threads" ./build.sh } function update_repo()