Skip to content
Snippets Groups Projects
Commit a40a3429 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Merge pull request #2758 from Yuras/hpc-in-ghci

Disable HPC in REPL for GHC
parents 83487036 c28d7826
No related branches found
No related tags found
No related merge requests found
......@@ -448,6 +448,7 @@ buildOrReplLib forRepl verbosity numJobs pkg_descr lbi lib clbi = do
cname = display $ PD.package $ localPkgDescr lbi
distPref = fromFlag $ configDistPref $ configFlags lbi
hpcdir way
| forRepl = mempty -- HPC is not supported in ghci
| isCoverageEnabled = toFlag $ Hpc.mixDir distPref way cname
| otherwise = mempty
......@@ -728,6 +729,7 @@ buildOrReplExe forRepl verbosity numJobs _pkg_descr lbi
let isCoverageEnabled = fromFlag $ configCoverage $ configFlags lbi
distPref = fromFlag $ configDistPref $ configFlags lbi
hpcdir way
| forRepl = mempty -- HPC is not supported in ghci
| isCoverageEnabled = toFlag $ Hpc.mixDir distPref way exeName'
| otherwise = mempty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment