bindings-dsl icon indicating copy to clipboard operation
bindings-dsl copied to clipboard

Cross compilation?

Open nomeata opened this issue 3 years ago • 1 comments

I am trying to cross-compile a haskell project that uses a .hsc file that uses bindings-DSL, but I get error messages like

src/….hsc:22 directive strict_import cannot be handled in cross-compilation mode

or

src/….hsc:26 directive starttype cannot be handled in cross-compilation mode

https://github.com/haskell/hsc2hs#cross-compilation writes

Only a subset of .hsc syntax is supported by --cross-compile. The following are unsupported: … Custom constructs

Does that mean that using binding-DSL will prevent any kind of cross compilation?

nomeata avatar Apr 07 '21 09:04 nomeata

In my concrete case the FFI was small enough to just drop down on “raw” hsc, not using bindings-DSL, so this is not urgent. I guess this issue can serve as a place for people to find more information related to cross compilation and bindings-DSL.

nomeata avatar Apr 07 '21 09:04 nomeata