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

Commit

Permalink
Build hpc-bin.
Browse files Browse the repository at this point in the history
See #187.
  • Loading branch information
snowleopard committed Jan 29, 2016
1 parent 8f9dd7e commit 0c06eac
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 @@ -36,6 +36,7 @@ data Builder = Alex
| GhcPkg Stage
| Haddock
| Happy
| Hpc
| HsColour
| HsCpp
| Hsc2Hs
Expand Down Expand Up @@ -63,6 +64,7 @@ builderProvenance = \case
GhcCabalHsColour -> builderProvenance $ GhcCabal
GhcPkg stage -> if stage > Stage0 then Just (Stage0, ghcPkg) else Nothing
Haddock -> Just (Stage2, haddock)
Hpc -> Just (Stage1, hpcBin)
Hsc2Hs -> Just (Stage0, hsc2hs)
Unlit -> Just (Stage0, unlit)
_ -> Nothing
Expand Down
3 changes: 3 additions & 0 deletions src/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ programPath stage pkg
| pkg `elem` [touchy, unlit] = case stage of
Stage0 -> Just $ "inplace/lib/bin" -/- pkgNameString pkg <.> exe
_ -> Nothing
| pkg == hpcBin = case stage of
Stage1 -> Just $ inplaceProgram "hpc"
_ -> Nothing
| isProgram pkg = case stage of
Stage0 -> Just . inplaceProgram $ pkgNameString pkg
_ -> Just . installProgram $ pkgNameString pkg
Expand Down

0 comments on commit 0c06eac

Please sign in to comment.