[Git][ghc/ghc][wip/andreask/hadrian-cfg-check] hadrian: Emit useful error if system.config is not found.
Andreas Klebinger pushed to branch wip/andreask/hadrian-cfg-check at Glasgow Haskell Compiler / GHC Commits: 7ef1c18f by Andreas Klebinger at 2026-06-15T17:48:02+02:00 hadrian: Emit useful error if system.config is not found. Fixes #27384 - - - - - 1 changed file: - hadrian/src/Rules.hs Changes: ===================================== hadrian/src/Rules.hs ===================================== @@ -118,8 +118,15 @@ packageRules = do Rules.SimpleTargets.simplePackageTargets Rules.SimpleTargets.completionRule +configCheckRule :: Rules () +configCheckRule = do + "hadrian/cfg/system.config" %> \cfg -> do + putFailure (cfg <> " not found.\nPerhaps you forgot to run:\n\t./boot\n\t./configure" ) + fail (cfg <> " not found.") + buildRules :: Rules () buildRules = do + configCheckRule Rules.BinaryDist.bindistRules Rules.Generate.copyRules Rules.Generate.generateRules View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7ef1c18ffb6e53582c3bd0dc7028ff59... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7ef1c18ffb6e53582c3bd0dc7028ff59... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Andreas Klebinger (@AndreasK)