unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60945: [PATCH] Add support for building tree-sitter modules with MinGW
@ 2023-01-19 14:28 Randy Taylor
  2023-01-25  1:42 ` Randy Taylor
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Taylor @ 2023-01-19 14:28 UTC (permalink / raw)
  To: 60945; +Cc: casouri


[-- Attachment #1.1: Type: text/plain, Size: 162 bytes --]

X-Debbugs-CC: casouri@gmail.com

See attached patch.

I think there was a bug report about supporting building tree-sitter modules on Windows but I can't find it.

[-- Attachment #1.2: Type: text/html, Size: 952 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-support-for-building-tree-sitter-modules-with-Mi.patch --]
[-- Type: text/x-patch; name=0001-Add-support-for-building-tree-sitter-modules-with-Mi.patch, Size: 1024 bytes --]

From 23750a5d35a8be6762cdbc7650afdbda3755267b Mon Sep 17 00:00:00 2001
From: Randy Taylor <dev@rjt.dev>
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.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-28  1:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 14:28 bug#60945: [PATCH] Add support for building tree-sitter modules with MinGW Randy Taylor
2023-01-25  1:42 ` Randy Taylor
2023-01-25  3:08   ` Yuan Fu
2023-01-25 12:23     ` Eli Zaretskii
2023-01-28  1:39     ` Randy Taylor

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).