emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 00675aa724 1/3: Add support for building tree-sitter modules wi


From: Yuan Fu
Subject: emacs-29 00675aa724 1/3: Add support for building tree-sitter modules with MinGW
Date: Thu, 26 Jan 2023 02:52:09 -0500 (EST)

branch: emacs-29
commit 00675aa724a6e18d03c2ccc63269ef03c67086ec
Author: Randy Taylor <dev@rjt.dev>
Commit: Yuan Fu <casouri@gmail.com>

    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 f096294028..9dc674237c 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}"
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]