Open cowboyd opened 9 months ago
There is also the msvc compiler cl.exe
which I know even less about, but is also present.
FWIW, I had luck using gcc installed via scoop.
After installing gcc, I started a bash shell via git-bash.exe
, cloned this repository, edited the contained build.sh
appropriately to use gcc
instead of cc
(and g++
instead of c++
) and executed ./build.sh <language>
.
This produced a dist
directory with an appropriate-looking .dll
in it. I also tried for a number of grammars and it worked in each case (e.g. c, javascript, python, and zig).
Haven't tested whether the .dll
s are functional though.
I tried a similar procedure with clang and got the same error:
clang: error: unsupported option '-fPIC' for target 'i686-pc-windows-msvc'
mentioned in the first post.
I'm trying to compile tree-sitter modules on a Windows 10 box at my work. However, whenever I try to use
clang
andclang++
for the compilers (those are the C compilers that I could find from the command line that come with Visual Studio 2022). I get the following error:Is there a way to support clang when compiling on windows?