Then run the code below in order in your terminal.
GHC is 8.10, llvm is version 12, and you can pass the path.
Tidalbootstrap
curl https://raw.githubusercontent.com/tidalcycles/tidal-bootstrap/master/tidal-bootstrap.command -sSf | sh
llvm version 12
brew install llvm@12
GHC 8.10.7 and opt and llc of pass
OPT=/opt/local/bin/opt-mp-12 LLC=/opt/local/bin/llc-mp-12 ghcup install ghc 8.10.7 --force
ghc 8.10.7 set
ghcup set ghc 8.10.7
Tidal install
cabal update
cabal install tidal --lib