]> git.eshelyaron.com Git - emacs.git/commitdiff
Add support for building tree-sitter modules with MinGW
authorRandy Taylor <dev@rjt.dev>
Thu, 19 Jan 2023 14:16:55 +0000 (09:16 -0500)
committerYuan Fu <casouri@gmail.com>
Thu, 26 Jan 2023 07:14:35 +0000 (23:14 -0800)
* 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

index f0962940287314f8ce40e9edd1b3f150fdcefcf0..9dc674237cac1620f0823d9e41e20d15dcd8b237 100755 (executable)
@@ -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}"