I am an OpenSuse and have multiple versions of LLVM installed. Unfortunately, the system default is version 17, which GHC doesn’t support yet. What do I need to do to get GHC to pick a different version?
You must install and have LLVM available on your
PATHfor the LLVM code generator to work. Specifically GHC needs to be able to call theoptandllctools.
From here.
I take it that if you make the opt and llc location of LLVM 16 available in your PATH and you remove the one from LLVM 17, it should work? ![]()