bug: fails to compile on win11 due to 'static_assert' is undefined
Parad0x84 opened this issue · comments
Did you check existing issues?
- I have read all the tree-sitter docs if it relates to using the parser
- I have searched the existing issues of tree-sitter-cpp
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version
)
No response
Describe the bug
treesitter fails to compile tree-sitter-cpp
output log: (note: I intentionally didn't change formatting of log message, since I don't know what's what)
nvim-treesitter[cpp]: Error during compilation
src/scanner.c: In function 'tree_sitter_cpp_external_scanner_serialize':^M src/scanner.c:126:5: warning: implicit declaration of function 'static_assert' [-Wimplicit-function-declaration]^M static_assert(MAX_DELIMITER_LENGTH * sizeof(wchar_t) < TREE_SITTER_SERIALIZATION_BUFFER_SIZE,^M ^~~~~~~~~~~~~^M C:\Users\admin\AppData\Local\Temp\ccKywmf4.o:scanner.c:(.text+0x199): undefined reference to `static_assert'^M collect2.exe: error: ld returned 1 exit status^M
Steps To Reproduce/Bad Parse Tree
I simply added tree-sitter and put 'cpp' to the ensure_installed field
Note: OS is Win11
Expected Behavior/Parse Tree
I expected it to simply work
Repro
No response