haskell / c2hs

c2hs is a pre-processor for Haskell FFI bindings to C libraries
http://hackage.haskell.org/package/c2hs
Other
197 stars 50 forks source link

use ghc-paths to support cross-compiling #293

Open ju1m opened 4 months ago

ju1m commented 4 months ago

Use ghc-paths in c2hs executable to support cross-compiling where ghc's executable name is prefixed, for eg. x86_64-unknown-linux-musl-ghc.

Otherwise this error is raised:

c2hs: does not exist (file: `Uncaught fatal error: ghc: readCreateProcessWithExitCode: posix_spawnp: does not exist (No such file or directory)