File tree 1 file changed +5
-3
lines changed
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
4
4
VER=v0.30.0
5
5
wget https://github.com/bytecodealliance/wasmtime/releases/download/${VER} /wasmtime-${VER} -x86_64-linux-c-api.tar.xz
6
6
tar -xvf ./wasmtime-${VER} -x86_64-linux-c-api.tar.xz > /dev/null
7
+ mv wasmtime-${VER} -x86_64-linux-c-api wasmtime-c-api
7
8
if echo " int main(void) {}" | gcc -o /dev/null -v -x c - & > /dev/stdout| grep collect | tr -s " " " \012" | grep musl; then
8
9
# 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 \
10
11
&& cd wasmtime \
11
12
&& git submodule update --init \
12
13
&& 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 ..
14
17
fi
15
- mv wasmtime-${VER} -x86_64-linux-c-api wasmtime-c-api
You can’t perform that action at this time.
0 commit comments