diff --git a/lisp/treesit.el b/lisp/treesit.el index 0b512cf8669..1ca72af5c2d 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -2772,6 +2772,8 @@ function signals an error." (rx bos (+ anychar) ".o" eos)) "-o" ,lib-name)) ;; Copy out. + (unless (file-exists-p out-dir) + (make-directory out-dir t)) (copy-file lib-name (file-name-as-directory out-dir) t t) (message "Library installed to %s/%s" out-dir lib-name)) (when (file-exists-p workdir)