Skip to content

Build tree-sitter with CMake? #88

@MisterDA

Description

@MisterDA

Upstream currently has accepted an incomplete version of changes required for building tree-sitter with Unix Makefiles and MinGW-w64, and suggests using CMake instead. Would this be acceptable here? It would remove the need to carry patches to the Makefile. CMake can be used as such (here in a Cygwin shell with the MinGW-w64 toolchain in the Path):

CC=x86_64-w64-mingw32-gcc cmake -B _build/ -S lib/ -G 'Unix Makefiles' --install-prefix='C:\tree-sitter'
cmake --build _build
cmake --install _build

The build directory and install prefix are arbitrary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions