LLVM version check for GHC 8.8.1-alpha2
While giving 8.8.1-alpha2 a try and using the LLVM backend I receive a lot of warnings of the form
You are using an unsupported version of LLVM! Currently only 7 is supported. We will try though...
However, I'm using version 7:
$ llc --version LLVM (http://llvm.org/): LLVM version 7.0.1 ... $ opt --version LLVM (http://llvm.org/): LLVM version 7.0.1 ...
I guess the problematic part is the following of file
debugTraceMsg dflags 2 (text "Using LLVM version:" <+> text (show ver)) let doWarn = wopt Opt_WarnUnsupportedLlvmVersion dflags when (ver /= supportedLlvmVersion && doWarn) $ putMsg dflags (text "You are using an unsupported version of LLVM!" $+$ text ("Currently only " ++ llvmVersionStr supportedLlvmVersion ++ " is supported.") $+$ text "We will try though...")
In my case
LlvmVersion 7 and
LlvmVersionOld 7 0. Thus
ver /= supportedLlvmVersion evaluates to
False which is Ok but it shouldn't ;-)
Used GHC version e20fe447