
1 Sep
2019
1 Sep
'19
2:18 p.m.
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 :) Example: https://hackage.haskell.org/package/fast-arithmetic-0.6.4.2/fast-arithmetic.... 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