Skip to content

Commit 210e9e5

Browse files
committed
Enable shared memory in wasmtime for threads SDK
The wasip1-threads SDK requires shared memory support in wasmtime. Without the -W shared-memory=y flag, tests fail to run with: "shared memory support is disabled for this engine"
1 parent b08f4bc commit 210e9e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/build-and-test-wasm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ run_tests() {
145145
# Determine wasmtime flags based on SDK type
146146
WASMTIME_FLAGS="--dir ."
147147
if echo "$SWIFT_SDK_NAME" | grep -q "threads"; then
148-
WASMTIME_FLAGS="$WASMTIME_FLAGS --wasm threads=y --wasi threads=y"
148+
WASMTIME_FLAGS="$WASMTIME_FLAGS --wasm threads=y --wasi threads=y -W shared-memory=y"
149149
fi
150150

151151
wasmtime run $WASMTIME_FLAGS "$TEST_BINARY"

0 commit comments

Comments
 (0)