[GHC] #10259: HPC code coverage fails
GHC
ghc-devs at haskell.org
Tue Jun 9 15:01:43 UTC 2015
#10259: HPC code coverage fails
-------------------------------------+-------------------------------------
Reporter: LukeHoersten | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: invalid | Keywords: hpc
Operating System: MacOS X | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Right, actually the problem specifically is that Cabal doesn't install the
`.mix` files anywhere when installing a package built with `--enable-
coverage`. So effectively you never want to use `cabal install --enable-
coverage`. This is a Cabal issue, not a GHC issue.
> Also, it's unclear to me when to use -fhpc vs. --enable-coverage. Is
there anywhere this is documented?
`-fhpc` is an option to GHC, and `--enable-coverage` is an option to
cabal-install. If you use `--enable-coverage` then Cabal will take care of
passing `-fhpc` to GHC.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10259#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list