Re: [Haskell-cafe] Cabal, GHC and Preprocessors

12 Apr
2010
12 Apr
'10
4:20 a.m.
On Mon, 2010-04-12 at 06:51 +0100, Malcolm Wallace wrote:
Even without that, it may be possible to get what you want, using -pgmPcpphs -optP-cpp -optP-ansi that is, to override ghc's addition of -traditional with -ansi. However I'm not sure exactly what order the preprocessor arguments will reach cpphs - in a choice between -traditional and -ansi, it is the last one on the cpphs commandline that will take effect.
This worked in my .cabal file: cpp-options: --cpp -ansi ghc-options: -pgmPcpphs Thanks! -- Ashley Yakeley
5519
Age (days ago)
5519
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ashley Yakeley