• Ömer Sinan Ağacan's avatar
    Fix LLVM version check yet again · bf9dfe1c
    Ömer Sinan Ağacan authored
    There were two problems with LLVM version checking:
    - The parser would only parse x and x.y formatted versions. E.g. 1.2.3
      would be rejected.
    - The version check was too strict and would reject x.y formatted
      versions. E.g. when we support version 7 it'd reject 7.0 ("LLVM
      version 7.0") and only accept 7 ("LLVM version 7").
    We now parse versions with arbitrarily deep minor numbering (x.y.z.t...)
    and accept versions as long as the major version matches the supported
    version (e.g. 7.1, 7.1.2, ...).
LlvmCodeGen.hs 7.84 KB