File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,14 @@ set -euo pipefail -x
44VER=v0.30.0
55wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -x86_64-linux-c-api.tar.xz
66tar -xvf ./wasmtime-${VER} -x86_64-linux-c-api.tar.xz > /dev/null
7+ mv wasmtime-${VER} -x86_64-linux-c-api wasmtime-c-api
78if echo " int main(void) {}" | gcc -o /dev/null -v -x c - & > /dev/stdout| grep collect | tr -s " " " \012" | grep musl; then
89 # build from source code if the libc is musl
9- git clone git@ github.com: bytecodealliance/wasmtime -b ${VER} \
10+ git clone https:// github.com/ bytecodealliance/wasmtime -b ${VER} --depth 1 \
1011 && cd wasmtime \
1112 && git submodule update --init \
1213 && RUSTFLAGS=" -C target-feature=-crt-static" \
13- cargo build --release --manifest-path crates/c-api/Cargo.toml
14+ cargo build --release --manifest-path crates/c-api/Cargo.toml \
15+ && mv target/release/libwasmtime.* ../wasmtime-c-api/lib \
16+ && cd ..
1417fi
15- mv wasmtime-${VER} -x86_64-linux-c-api wasmtime-c-api
You can’t perform that action at this time.
0 commit comments