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
1 changed file:
Changes:
| ... | ... | @@ -118,8 +118,15 @@ packageRules = do |
| 118 | 118 | Rules.SimpleTargets.simplePackageTargets
|
| 119 | 119 | Rules.SimpleTargets.completionRule
|
| 120 | 120 | |
| 121 | +configCheckRule :: Rules ()
|
|
| 122 | +configCheckRule = do
|
|
| 123 | + "hadrian/cfg/system.config" %> \cfg -> do
|
|
| 124 | + putFailure (cfg <> " not found.\nPerhaps you forgot to run:\n\t./boot\n\t./configure" )
|
|
| 125 | + fail (cfg <> " not found.")
|
|
| 126 | + |
|
| 121 | 127 | buildRules :: Rules ()
|
| 122 | 128 | buildRules = do
|
| 129 | + configCheckRule
|
|
| 123 | 130 | Rules.BinaryDist.bindistRules
|
| 124 | 131 | Rules.Generate.copyRules
|
| 125 | 132 | Rules.Generate.generateRules
|