Skip to content

Commit

Permalink
chore: upgrade wasmtime to 0.35.1 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Mar 24, 2022
1 parent 4ea1ff8 commit b389294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 4 additions & 1 deletion install-wasmtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
#
set -euo pipefail -x

VER=v0.30.0
VER=v0.35.1
wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER}/wasmtime-${VER}-x86_64-linux-c-api.tar.xz
tar -xvf ./wasmtime-${VER}-x86_64-linux-c-api.tar.xz > /dev/null
if [ -d wasmtime-c-api ]; then
rm -rf wasmtime-c-api
fi
mv wasmtime-${VER}-x86_64-linux-c-api wasmtime-c-api
if echo "int main(void) {}" | gcc -o /dev/null -v -x c - &> /dev/stdout| grep collect | tr -s " " "\012" | grep musl; then
# build from source code if the libc is musl
Expand Down
7 changes: 0 additions & 7 deletions src/vm/wasmtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,6 @@ ngx_http_wasmtime_host_api_func(const ngx_wasm_wasmtime_host_api_t *api)
wasm_valtype_vec_new(&result_vec, 1, result);

f = wasm_functype_new(&param_vec, &result_vec);

for (i = 0; i < api->param_num; i++) {
wasm_valtype_delete(param[i]);
}

wasm_valtype_delete(result[0]);

return f;
}

Expand Down

0 comments on commit b389294

Please sign in to comment.