Closed
Description
At least one author has found that they need to specify one of these flags to get their stuff to work on OSX. This throws up the issue of how that integrates with Cabal.
I'm not totally clear on when these flags are needed:
- Are these flags something that should always be set by Cabal based on the platform we're building on? If so, should they just be the c2hs defaults, or is it something Cabal should always pass to c2hs?
- If they're not global to the platform, are these flags things that authors need to know to specify (e.g. because they're required to be set for some header files and required not to be set for others)? If so, the right thing would be for them to be in-file directives (like the other file-global directives like {# context #}).
At the moment it's impossible to use either flag from a Cabal package because there's nowhere for the author to specify them. We do not wish to add a c2hs-options
field to the .cabal file: in allmost all cases flags should be set automatically by the build system (like --cpp) or author-specified directives should live inside the files.
Metadata
Metadata
Assignees
Labels
No labels