From 00675aa724a6e18d03c2ccc63269ef03c67086ec Mon Sep 17 00:00:00 2001 From: Randy Taylor Date: Thu, 19 Jan 2023 09:16:55 -0500 Subject: [PATCH] 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. --- admin/notes/tree-sitter/build-module/build.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/admin/notes/tree-sitter/build-module/build.sh b/admin/notes/tree-sitter/build-module/build.sh index f0962940287..9dc674237ca 100755 --- a/admin/notes/tree-sitter/build-module/build.sh +++ b/admin/notes/tree-sitter/build-module/build.sh @@ -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}" -- 2.39.2