CPP not called before ffihugs #520

Closed
bos opened this Issue May 24, 2012 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

bos commented May 24, 2012

(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

Owner

tibbe commented May 15, 2014

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.

tibbe closed this May 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment