Skip to content

Mac OS C++14 compiler #888

Closed Answered by laher
snikoletopoulos asked this question in Q&A
Discussion options

You must be logged in to vote

This is what I did:

brew install gcc

I tried setting the CC env variable, but it didn't help on its own. So then I added this to my treesitter config, and then it worked.

require("nvim-treesitter.install").compilers = { "gcc-13" }

It did not work with just { "gcc" }. This command ls /opt/homebrew/bin/gcc-1* told me that I have gcc-13.

I don't know why the extra step was needed. I am also not a C/C++ dev.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by snikoletopoulos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants