File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,14 @@ if [ -d wasmtime-c-api ]; then
32
32
rm -rf wasmtime-c-api
33
33
fi
34
34
mv wasmtime-${VER} -${ARCH} -${os} -c-api wasmtime-c-api
35
- if echo " int main(void) {}" | gcc -o /dev/null -v -x c - & > /dev/stdout| grep collect | tr -s " " " \012" | grep musl; then
36
- # build from source code if the libc is musl
35
+ if { echo " int main(void) {}" | gcc -o /dev/null -v -x c - & > /dev/stdout| grep collect | tr -s " " " \012" | grep musl; } \
36
+ || ( [[ -f /etc/redhat-release ]] && [[ " $arch " = " aarch64" ]] ); then
37
+ # build from source code if the libc is musl or under centos aarch64
38
+ if ! command -v cargo > /dev/null; then
39
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
40
+ source " $HOME /.cargo/env"
41
+ fi
42
+
37
43
git clone https://github.com/bytecodealliance/wasmtime -b ${VER} --depth 1 \
38
44
&& cd wasmtime \
39
45
&& git submodule update --init \
You can’t perform that action at this time.
0 commit comments