patch applied (cabal-branches/cabal-1.2): Figure out if hsc2hs is using gcc or ghc as it's C compiler

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Wed Oct 17 14:31:04 EDT 2007


Wed Oct 17 07:31:08 PDT 2007  Duncan Coutts <duncan at haskell.org>
  * Figure out if hsc2hs is using gcc or ghc as it's C compiler
  and pass the appropriate flags on the basis of knowing that.
  This is a hack.
  What we should do longer term is make hsc2hs always use gcc as it's C compiler
  and have Cabal figure out the right flags to pass it, rather than using ghc
  to pass on the appropriate flags to gcc.

    M ./Distribution/Simple/PreProcess.hs -3 +4
    M ./Distribution/Simple/Program.hs -8 +31
    M ./Distribution/Simple/Utils.hs -4 +11



More information about the cabal-devel mailing list