File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1515#
1616set -euo pipefail -x
1717
18- VER=v0.30.0
18+ VER=v0.35.1
1919wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -x86_64-linux-c-api.tar.xz
2020tar -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
2124mv wasmtime-${VER} -x86_64-linux-c-api wasmtime-c-api
2225if 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments