On Jul 26, 2007, at 9:37 AM, Peter Tanski wrote:
On Jul 26, 2007, at 7:02 AM, Neil Mitchell wrote:
I haven't tried, but doesn't this already work if you set the CPP
environment variable to cpphs before running configure? You might
also
need to set CPPFLAGS to something.
If you pass the --cpp flag then cpphs works like GHC expects,
otherwise it has a different set of flags.
Also, without the '-cpp' flag cpphs seems to 'open' (as in fopen())
the operand to '-I'. If I use 'cpphs -I../includes' it will fail
because it is 'unable to open file'. With '-cpp' this does not
happen.
Oops. It isn't a problem with cpphs: it just expects '-Ipath' not '-
I path' and treats the first space-separated 'path' as a file.
Fixed. So now we have cpphs --layout --hashes and things are working
fine.
Cheers,
Pete
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc