6 Dec
2005
6 Dec
'05
11:39 a.m.
Isaac Jones <ijones@syntaxpolice.org> writes:
BTW, does cpphs do anything with ghcconfig.h? Should cabal be adding that include path somewhere in the cases where it uses cpphs?
cpphs has no pre-defined macros, and no predefined include paths. If you want it to pretend to be ghc -cpp, you need to add arguments like -D__GLASGOW_HASKELL__=604 -I/usr/local/lib/ghc-6.4.1/includes explicitly. (More generally, you might want to record such arguments in a little wrapper script that calls cpphs.) Regards, Malcolm