[Git][ghc/ghc][master] Make unexpected LLVM versions a warning rather than an error.

Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 50842f83 by Andreas Klebinger at 2025-08-13T21:03:01-04:00 Make unexpected LLVM versions a warning rather than an error. Typically a newer LLVM version *will* work so erroring out if a user uses a newer LLVM version is too aggressive. Fixes #25915 - - - - - 1 changed file: - compiler/GHC/Driver/Errors/Ppr.hs Changes: ===================================== compiler/GHC/Driver/Errors/Ppr.hs ===================================== @@ -281,7 +281,7 @@ instance Diagnostic DriverMessage where ++ llvmVersionStr supportedLlvmVersionLowerBound ++ " and " ++ llvmVersionStr supportedLlvmVersionUpperBound - ++ ") and reinstall GHC to make -fllvm work") + ++ ") and reinstall GHC to ensure -fllvm works") diagnosticReason = \case DriverUnknownMessage m @@ -352,7 +352,7 @@ instance Diagnostic DriverMessage where DriverInstantiationNodeInDependencyGeneration {} -> ErrorWithoutFlag DriverNoConfiguredLLVMToolchain - -> ErrorWithoutFlag + -> WarningWithoutFlag diagnosticHints = \case DriverUnknownMessage m View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/50842f83f467ff54dd22470559a7af79... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/50842f83f467ff54dd22470559a7af79... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)