I am using MacBook and I have installed LLVM@13 using brew install. I have changed .zshrc file also.
export PATH=/opt/homebrew/opt/llvm/bin:/opt/homebrew/bin:$PATH
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
I still get the following error when I run cabal build. Am I still missing something.
: error:
Warning: Couldn’t figure out LLVM version!
Make sure you have installed LLVM between [9 and 13)
ghc: could not execute: opt