bindings-dsl
bindings-dsl copied to clipboard
Cross compilation?
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?
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.