haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.62k stars 691 forks source link

hpc doesn't work with absolute distdir #2999

Open ezyang opened 8 years ago

ezyang commented 8 years ago

If you try to do any HPC using an absolute --distdir, hpc will fail to find the tix files. This is due to this bug: https://ghc.haskell.org/trac/ghc/ticket/10951

Cabal could work around this by relativizing the dist-dir with respect to the CWD, and then proceeding from there. This is what I had to do for the new test suite in #2998.

23Skidoo commented 8 years ago

/cc @ttuegel

ttuegel commented 8 years ago

Cabal could work around this by relativizing the dist-dir with respect to the CWD, and then proceeding from there.

I think that's a reasonable work-around.