Hi,
A package I am working with needs to link with the version of llvm library that is installed on the system. Currently the llvm version to link is hardcoded in the cabal file by setting -ghc-options: -optl=LLVM17
. This works on Linux. But MacOS does not have LLVM17 available yet for installation via homebrew, so when building on MacOS, I need to change this to -ghc-options: -optl=LLVM16
to get it to work.
Is there a better/more portable way of achieving this that will work on Linux as well as MacOS?
thanks in advance!