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:
parent
af28191b04
commit
00675aa724
1 changed files with 11 additions and 6 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue