diff --git a/bin/env.bash b/bin/env.bash index c4b9b427..78050a50 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 == "FreeBSD" ]]; then ext="so" diff --git a/lisp/tree-sitter-load.el b/lisp/tree-sitter-load.el index 8255ca44..6dd50f49 100644 --- a/lisp/tree-sitter-load.el +++ b/lisp/tree-sitter-load.el @@ -33,9 +33,7 @@ See `tree-sitter-require'.") (pcase system-type ;; The CLI tool outputs `.so', but `.dylib' is more sensible on macOS. ('darwin (list ".dylib" ".so")) - ('berkeley-unix (list ".so")) - ('gnu/linux (list ".so")) - ('android (list ".so")) + ((or 'gnu 'gnu/linux 'gnu/kfreebsd 'berkeley-unix 'android) (list ".so")) ('windows-nt (list ".dll")) (_ (error "Unsupported system-type %s" system-type))) "List of suffixes for shared libraries that define tree-sitter languages.")