darcs patch: Pass profiling flag to ghc when compiling C files.

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Tue Nov 3 12:01:13 EST 2009


Hi folks,

this change was discussed shortly on #haskell. See also
    http://hpaste.org/fastcgi/hpaste.fcgi/view?id=11508#a11509

Regards,

Bertram

Tue Nov  3 17:55:58 CET 2009  Bertram Felgenhauer <int-e at gmx.de>
  * Pass profiling flag to ghc when compiling C files.
  The main effect of this change is that the PROFILING macro gets defined
  when compiling C files and profiling is enabled. This is useful for code
  that inspects closures.
  
  Caveat:
    The change relies on the fact that Cabal does not track dependencies
    of C files but recompiles them every time. If dependency tracking is
    added, we'll need different extensions for profiling and non-profiling
    object files.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 58183 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/cabal-devel/attachments/20091103/88ecacd8/attachment-0001.bin


More information about the cabal-devel mailing list