Skip to content

Commit ed10567

Browse files
committed
Account for .buildinfo in repl when build-type: Configure
In `autoconfUserHooks` we were not updating the `preRepl` hook to read additional build information from /package/@.buildinfo@. Additionally updates `autoconfUserHooks` to read additional build info information for the remaining pre-hooks that are not pre-conf. Fixes #9401
1 parent 993481e commit ed10567

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Cabal/src/Distribution/Simple.hs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,7 @@ simpleUserHooks =
743743
--
744744
-- * 'postConf' runs @.\/configure@, if present.
745745
--
746-
-- * the pre-hooks 'preBuild', 'preClean', 'preCopy', 'preInst',
747-
-- 'preReg' and 'preUnreg' read additional build information from
746+
-- * the pre-hooks, except for pre-conf, read additional build information from
748747
-- /package/@.buildinfo@, if present.
749748
--
750749
-- Thus @configure@ can use local system information to generate
@@ -753,14 +752,17 @@ autoconfUserHooks :: UserHooks
753752
autoconfUserHooks =
754753
simpleUserHooks
755754
{ postConf = defaultPostConf
756-
, preBuild = readHookWithArgs buildVerbosity buildDistPref -- buildCabalFilePath,
755+
, preBuild = readHookWithArgs buildVerbosity buildDistPref
756+
, preRepl = readHookWithArgs replVerbosity replDistPref
757757
, preCopy = readHookWithArgs copyVerbosity copyDistPref
758758
, preClean = readHook cleanVerbosity cleanDistPref
759759
, preInst = readHook installVerbosity installDistPref
760760
, preHscolour = readHook hscolourVerbosity hscolourDistPref
761761
, preHaddock = readHookWithArgs haddockVerbosity haddockDistPref
762762
, preReg = readHook regVerbosity regDistPref
763763
, preUnreg = readHook regVerbosity regDistPref
764+
, preTest = readHookWithArgs testVerbosity testDistPref
765+
, preBench = readHookWithArgs benchmarkVerbosity benchmarkDistPref
764766
}
765767
where
766768
defaultPostConf

0 commit comments

Comments
 (0)