From: Randy Taylor Date: Thu, 19 Jan 2023 14:16:55 +0000 (-0500) Subject: Add support for building tree-sitter modules with MinGW X-Git-Tag: emacs-29.0.90~594 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=00675aa724a6e18d03c2ccc63269ef03c67086ec;p=emacs.git 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. --- 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}"