ghcup-hs
ghcup-hs copied to clipboard
ghcup install of ghc 9.8.4 fails on mac 15.1 ('iostream' file not found), needs env var
Here's the workaround I found.
- Ensure a suitable older llvm version is installed. The latest that ghc accepts currently is 15.
brew install llvm@15
- Set the CXX env var:
export CXX=/opt/homebrew/opt/llvm@15/bin/clang++
ghcup install ghc 9.8.4 # works