Building tree-sitter on Windows within a Cygwin or MSYS2 environment
for MinGW-w64 targets should work. As there's no configure-like step,
the tools have to be specified with:
make CC=x86_64-w64-mingw32-gcc \
AR=x86_64-w64-mingw32-ar \
STRIP=x86_64-w64-mingw32-strip
Useful reference:
[How to build and use DLLs on Windows](https://nullprogram.com/blog/2021/05/31/)
This commit doesn't tag public functions with dllexport or
dllimport. This results in exporting non-static functions visible
between translation units, and generating slightly less efficient code
for calling exported functions from the DLL.
This commit doesn't include support to build libtree-sitter with MSVC or
clang-cl, but generates a libtree-sitter.lib file for MSVC/clang-cl
consumers.
36 lines
321 B
Text
36 lines
321 B
Text
log*.html
|
|
|
|
.idea
|
|
*.xcodeproj
|
|
.vscode
|
|
.cache
|
|
.zig-cache
|
|
|
|
profile*
|
|
fuzz-results
|
|
test/fuzz/out
|
|
test/fixtures/grammars/*
|
|
!test/fixtures/grammars/.gitkeep
|
|
|
|
node_modules
|
|
|
|
docs/assets/js/tree-sitter.js
|
|
|
|
/tree-sitter.pc
|
|
|
|
/target
|
|
*.rs.bk
|
|
*.a
|
|
*.dylib
|
|
*.so
|
|
*.so.[0-9]*
|
|
*.dll
|
|
*.o
|
|
*.obj
|
|
*.exp
|
|
*.lib
|
|
*.wasm
|
|
.swiftpm
|
|
.build
|
|
build
|
|
zig-*
|