[jhc] darcs patch: fix System.CPUTime.

David Roundy roundyd at physics.oregonstate.edu
Fri Sep 4 07:25:36 EDT 2009


Hi John,

This patch runs into a problem with cross-compiling that I don't know
if you have a solution to.  The (portable) clock function returns a
clock_t, which may be different sizes on different systems.  I used
hsc2hs to get the size (since Foreign.C.Types is just a stub), but
this will fail on cross-compilation.  What is the recommended
approach? Do we need two copies of the libraries, or is the data from
targets.ini somehow available to us, or a way to generate clock_t
directly in the C code?

David

Fri Sep  4 07:20:20 EDT 2009  David Roundy <roundyd at physics.oregonstate.edu>
  * fix System.CPUTime.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 7578 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/jhc/attachments/20090904/43bcd26b/attachment.bin


More information about the jhc mailing list