(Imported from Trac #527, reported by guest on 2009-03-18)
When building for Hugs, if CPP is being used in conjunction with FFI, then cpp/cpphs
is not called before ffihugs is called. Thus, users must pass an
-F flag to ffihugs in order to declare a code filter (and must pass
all cpp-options to -F manually). For example:
--ffihugs-option=-F'cpp -P -traditional -D__HUGS__ -D__BLAH__'
This requires duplicating the build specifications, which defeats
the point of Cabal. Also it leads to tricky issues about ensuring
the proper level of quoting/escaping. (e.g. using the plural,
--ffihugs-options=..., breaks it. Wrapping the -F'cpp...' in double
quotes breaks it.)
A simple example of this bug can be seen in Darcs repo http://community.haskell.org/~wren/cabal-ffihugstest
Closing as there's been no activity in years.
We're cleaning up the bug tracker to make it useful again and are thus closing bugs that haven't seen any activity in a long time. Please re-open (or file a new bug) if the problem reappears.