Skip to content

Commit ce12493

Browse files
yamtloganek
authored andcommitted
export memory for the C wasi-threads test module
wasi requires the memory exported as "memory". certain runtimes actually requires it. (eg. wasmtime) cf. WebAssembly/wasi-sdk#297 also, bump the wasi-sdk version because this doesn't work with an old wasm-ld.
1 parent 917cd15 commit ce12493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update-proposal-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ REPOS=(
55
"wasi-threads"
66
)
77

8-
WASI_VERSION=20
8+
WASI_VERSION=22
99
WASI_SDK_DIR=$(pwd)/wasi-sdk
1010
BASE_BRANCH="prod/testsuite-base"
1111
PROPOSALS_DIR="tests/proposals"
@@ -25,7 +25,7 @@ function install_wasi_sdk()
2525

2626
function build_wasi-threads()
2727
{
28-
CC="$WASI_SDK_DIR/bin/clang -pthread -Wl,--import-memory --target=wasm32-wasi-threads" ./build.sh
28+
CC="$WASI_SDK_DIR/bin/clang -pthread -Wl,--import-memory -Wl,--export-memory --target=wasm32-wasi-threads" ./build.sh
2929
}
3030

3131
function update_repo()

0 commit comments

Comments
 (0)