all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Randy Taylor <dev@rjt.dev>
To: 60945@debbugs.gnu.org
Cc: casouri@gmail.com
Subject: bug#60945: [PATCH] Add support for building tree-sitter modules with MinGW
Date: Thu, 19 Jan 2023 14:28:20 +0000	[thread overview]
Message-ID: <Z7jp6HNcPGKSN_aygpVpsv-Sf89NSKyIWsW_aGKbcRpR8ZetdoBSEoP8W2kNT24xHeLipK-Yl3uJKQf7_oRD_Vo79Aa2hPtufJF_fZ-hQ58=@rjt.dev> (raw)


[-- 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


             reply	other threads:[~2023-01-19 14:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19 14:28 Randy Taylor [this message]
2023-01-25  1:42 ` bug#60945: [PATCH] Add support for building tree-sitter modules with MinGW Randy Taylor
2023-01-25  3:08   ` Yuan Fu
2023-01-25 12:23     ` Eli Zaretskii
2023-01-28  1:39     ` Randy Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Z7jp6HNcPGKSN_aygpVpsv-Sf89NSKyIWsW_aGKbcRpR8ZetdoBSEoP8W2kNT24xHeLipK-Yl3uJKQf7_oRD_Vo79Aa2hPtufJF_fZ-hQ58=@rjt.dev' \
    --to=dev@rjt.dev \
    --cc=60945@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.