Skip to content

Commit

Permalink
fix binaryen library binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Zwiterrion committed Jul 23, 2024
1 parent b2752ea commit 18c4159
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ if ! which "wasm-merge" > /dev/null; then
mv binaryen/bin/wasm-opt /usr/local/binaryen/wasm-opt
ln -s /usr/local/binaryen/wasm-opt /usr/local/bin/wasm-opt

mv binaryen/lib/libbinaryen.dylib /usr/local/binaryen/libbinaryen.dylib
ln -s /usr/local/binaryen/libbinaryen.dylib /usr/local/lib/libbinaryen.dylib
if [ $OS = "linux" ]; then
mv binaryen/lib/libbinaryen.a /usr/local/binaryen/libbinaryen.a
ln -s /usr/local/binaryen/libbinaryen.a /usr/local/lib/libbinaryen.a
fi

if [ $OS = "macos" ]; then
mv binaryen/lib/libbinaryen.dylib /usr/local/binaryen/libbinaryen.dylib
ln -s /usr/local/binaryen/libbinaryen.dylib /usr/local/lib/libbinaryen.dylib
fi

else
echo "wasm-merge already installed"
fi

0 comments on commit 18c4159

Please sign in to comment.