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 15
15
#
16
16
set -euo pipefail -x
17
17
18
- VER=v0.30.0
18
+ VER=v0.35.1
19
19
wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -x86_64-linux-c-api.tar.xz
20
20
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
21
24
mv wasmtime-${VER} -x86_64-linux-c-api wasmtime-c-api
22
25
if echo " int main(void) {}" | gcc -o /dev/null -v -x c - & > /dev/stdout| grep collect | tr -s " " " \012" | grep musl; then
23
26
# 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)
67
67
wasm_valtype_vec_new (& result_vec , 1 , result );
68
68
69
69
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
-
77
70
return f ;
78
71
}
79
72
You can’t perform that action at this time.
0 commit comments