Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Depend on Stage2 GHC, ghc-pkg and hpc in validate target.
Browse files Browse the repository at this point in the history
See #187. [skip ci]
  • Loading branch information
snowleopard committed Jan 30, 2016
1 parent a9f9876 commit 304840f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ getBuilderPath = lift . builderPath
specified :: Builder -> Action Bool
specified = fmap (not . null) . builderPath

-- TODO: split into two functions: needBuilder (without laxDependencies) and
-- unsafeNeedBuilder (with the laxDependencies parameter)
-- | Make sure a builder exists on the given path and rebuild it if out of date.
-- If 'laxDependencies' is True then we do not rebuild GHC even if it is out of
-- date (can save a lot of build time when changing GHC).
Expand Down
3 changes: 3 additions & 0 deletions src/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ import Settings.User
testRules :: Rules ()
testRules = do
"validate" ~> do
needBuilder False $ Ghc Stage2 -- TODO: get rid of False parameters
needBuilder False $ GhcPkg Stage1
needBuilder False $ Hpc
runMakeVerbose "testsuite/tests" ["fast"]

"test" ~> do
Expand Down

0 comments on commit 304840f

Please sign in to comment.