[Haskell-cafe] ghc and OpenMP

Vanessa McHale vamchale at gmail.com
Sun Sep 1 18:18:06 UTC 2019

Ah, I see.

In the cabal file you can make a flag with cc-options. It goes in the
same place ghc-options would. That's probably the easiest way to do it :)


On 9/1/19 1:14 PM, PICCA Frederic-Emmanuel wrote:
>> How do you mean? I assume you aren't using hsc2hs or c2hs?
> I use hsc2hs, just to write the  FFI bindings of my local c files.
>> Do you have something like hslua already?
>> https://github.com/hslua/hslua/blob/master/hslua.cabal#L131
> Yes, but it seems to me that I need to gives gcc this [1].
> So how can I says to ghc, to compile the .c files with OpenMP activated ?
> [1] https://gcc.gnu.org/onlinedocs/libgomp/Enabling-OpenMP.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190901/c1e60bd4/attachment.sig>

More information about the Haskell-Cafe mailing list