Add support for building tree-sitter modules with MinGW

* admin/notes/tree-sitter/build-module/build.sh: Add support for
building tree-sitter modules with MinGW.
This commit is contained in:
Randy Taylor 2023-01-19 09:16:55 -05:00 committed by Yuan Fu
parent af28191b04
commit 00675aa724
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -3,12 +3,17 @@
lang=$1 lang=$1
topdir="$PWD" topdir="$PWD"
if [ $(uname) == "Darwin" ] case $(uname) in
then "Darwin")
soext="dylib" soext="dylib"
else ;;
soext="so" *"MINGW"*)
fi soext="dll"
;;
*)
soext="so"
;;
esac
echo "Building ${lang}" echo "Building ${lang}"