Skip to content

Commit b389294

Browse files
authored
chore: upgrade wasmtime to 0.35.1 (#99)
1 parent 4ea1ff8 commit b389294

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

install-wasmtime.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
#
1616
set -euo pipefail -x
1717

18-
VER=v0.30.0
18+
VER=v0.35.1
1919
wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER}/wasmtime-${VER}-x86_64-linux-c-api.tar.xz
2020
tar -xvf ./wasmtime-${VER}-x86_64-linux-c-api.tar.xz > /dev/null
21+
if [ -d wasmtime-c-api ]; then
22+
rm -rf wasmtime-c-api
23+
fi
2124
mv wasmtime-${VER}-x86_64-linux-c-api wasmtime-c-api
2225
if echo "int main(void) {}" | gcc -o /dev/null -v -x c - &> /dev/stdout| grep collect | tr -s " " "\012" | grep musl; then
2326
# build from source code if the libc is musl

src/vm/wasmtime.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ ngx_http_wasmtime_host_api_func(const ngx_wasm_wasmtime_host_api_t *api)
6767
wasm_valtype_vec_new(&result_vec, 1, result);
6868

6969
f = wasm_functype_new(&param_vec, &result_vec);
70-
71-
for (i = 0; i < api->param_num; i++) {
72-
wasm_valtype_delete(param[i]);
73-
}
74-
75-
wasm_valtype_delete(result[0]);
76-
7770
return f;
7871
}
7972

0 commit comments

Comments
 (0)