Cabal with profiling

Iavor Diatchki iavor.diatchki at gmail.com
Thu Nov 17 17:02:08 EST 2005


Hello,
I am sure this was asked before, but I could not find any answers... 
How can I use Cabal to build a package that includes both normal and
profiling versions of my library for GHC?
I am thinking of something like:
runhaskell Setup.hs configure --ghc --with-profiling
  * remembers that we want profiling libraries)
runhaskell Setup.hs build
  * compile as usual
  * if 'with-profiling' compile again with some additional options,
(e.g., -prof etc)
and then proceed as usual.

-Iavor


More information about the Libraries mailing list