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
topdir="$PWD"
if [ $(uname) == "Darwin" ]
then
soext="dylib"
else
soext="so"
fi
case $(uname) in
"Darwin")
soext="dylib"
;;
*"MINGW"*)
soext="dll"
;;
*)
soext="so"
;;
esac
echo "Building ${lang}"