[Git][ghc/ghc][wip/andreask/warn-pattern-namespace] Don't build GHC with -Wcompat
Andreas Klebinger pushed to branch wip/andreask/warn-pattern-namespace at Glasgow Haskell Compiler / GHC Commits: e8f7bf93 by Andreas Klebinger at 2026-01-19T13:17:00+01:00 Don't build GHC with -Wcompat Without bumping the boot compiler the warnings it produces are often not actionable leading to pointless noise. Fixes #26800 - - - - - 2 changed files: - compiler/ghc.cabal.in - hadrian/src/Settings/Builders/Ghc.hs Changes: ===================================== compiler/ghc.cabal.in ===================================== @@ -149,6 +149,7 @@ Library else Build-Depends: unix >= 2.7 && < 2.9 + -- Hadrian further set some warnings in its Settings.Warnings module. GHC-Options: -Wall -Wno-name-shadowing -Wnoncanonical-monad-instances ===================================== hadrian/src/Settings/Builders/Ghc.hs ===================================== @@ -38,7 +38,6 @@ compileAndLinkHs = (builder (Ghc CompileHs) ||^ builder (Ghc LinkHs)) ? do stage <- getStage hie_path <- getHieBuildPath mconcat [ arg "-Wall" - , arg "-Wcompat" , not useColor ? builder (Ghc CompileHs) ? -- N.B. Target.trackArgument ignores this argument from the -- input hash to avoid superfluous recompilation, avoiding View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e8f7bf93a027f6f7fe26e9d6dca88845... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e8f7bf93a027f6f7fe26e9d6dca88845... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Andreas Klebinger (@AndreasK)