projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af28191
)
Add support for building tree-sitter modules with MinGW
author
Randy Taylor
<dev@rjt.dev>
Thu, 19 Jan 2023 14:16:55 +0000
(09:16 -0500)
committer
Yuan 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
patch
|
blob
|
history
diff --git
a/admin/notes/tree-sitter/build-module/build.sh
b/admin/notes/tree-sitter/build-module/build.sh
index f0962940287314f8ce40e9edd1b3f150fdcefcf0..9dc674237cac1620f0823d9e41e20d15dcd8b237 100755
(executable)
--- 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}"