diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-10-27 06:46:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 21:46:18 -0700 |
commit | 7765f2bb8304631c00f1e00ffc73c18cd4d22601 (patch) | |
tree | bf7ba1224e643c471bfc94d7defbae59230344ac /src | |
parent | 0117c97e624ec14da05844f4e6f162b4f4e2a827 (diff) | |
download | rneovim-7765f2bb8304631c00f1e00ffc73c18cd4d22601.tar.gz rneovim-7765f2bb8304631c00f1e00ffc73c18cd4d22601.tar.bz2 rneovim-7765f2bb8304631c00f1e00ffc73c18cd4d22601.zip |
build: copy each treesitter parser library individually #20797
Copying each .so file one by one, rather than the entire parser
directory, allows newer .so files to overwrite older .so files with the
same name. This is useful when bumping a parser version and rebuilding
neovim without needing to run `make distclean` beforehand.
Diffstat (limited to 'src')
-rwxr-xr-x | src/nvim/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index ac27f46bfb..aee6319770 100755 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -571,7 +571,10 @@ file(MAKE_DIRECTORY ${BINARY_LIB_DIR}) # install treesitter parser if bundled if(EXISTS ${DEPS_PREFIX}/lib/nvim/parser) - file(COPY ${DEPS_PREFIX}/lib/nvim/parser DESTINATION ${BINARY_LIB_DIR}) + glob_wrapper(TREESITTER_PARSERS ${DEPS_PREFIX}/lib/nvim/parser/*) + foreach(parser_lib ${TREESITTER_PARSERS}) + file(COPY ${parser_lib} DESTINATION ${BINARY_LIB_DIR}/parser) + endforeach() endif() install(DIRECTORY ${BINARY_LIB_DIR} |