diff --git a/bin/env.bash b/bin/env.bash index d48f4561..ec156ebc 100644 --- a/bin/env.bash +++ b/bin/env.bash @@ -1,7 +1,7 @@ set -euo pipefail system=$(uname) -if [[ $system == "Linux" ]]; then +if [[ $system == "Linux" ]] || [[ $system == "NetBSD" ]]; then ext="so" elif [[ $system == "Darwin" ]]; then ext="dylib" diff --git a/core/tsc-dyn-get.el b/core/tsc-dyn-get.el index 35fecc80..e1e44c96 100644 --- a/core/tsc-dyn-get.el +++ b/core/tsc-dyn-get.el @@ -72,7 +72,7 @@ this to nil." (pcase system-type ('windows-nt "dll") ('darwin "dylib") - ((or 'gnu 'gnu/linux 'gnu/kfreebsd) "so") + ((or 'gnu 'gnu/linux 'gnu/kfreebsd 'berkeley-unix) "so") ((or 'ms-dos 'cygwin) (error "Unsupported system-type %s" system-type)) (_ "so"))) diff --git a/lisp/tree-sitter-load.el b/lisp/tree-sitter-load.el index 95114506..11102755 100644 --- a/lisp/tree-sitter-load.el +++ b/lisp/tree-sitter-load.el @@ -32,7 +32,7 @@ See `tree-sitter-require'.") (pcase system-type ;; The CLI tool outputs `.so', but `.dylib' is more sensible on macOS. ('darwin (list ".dylib" ".so")) - ('gnu/linux (list ".so")) + ((or 'gnu 'gnu/linux 'gnu/kfreebsd 'berkeley-unix) "so") ('windows-nt (list ".dll")) (_ (error "Unsupported system-type %s" system-type))) "List of suffixes for shared libraries that define tree-sitter languages.")