Skip to content

Commit

Permalink
export memory for the C wasi-threads test module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yamt committed Aug 10, 2024
1 parent 917cd15 commit 826114c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update-proposal-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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()
Expand Down

0 comments on commit 826114c

Please sign in to comment.