Patch : Fix missing import
Erik de Castro Lopo
mle+hs at mega-nerd.com
Sat May 14 00:15:39 CEST 2011
Erik de Castro Lopo wrote:
> Yeah, the code that uses Config.cProjectVersion is this:
>
>
> #if !defined(darwin_TARGET_OS)
> -- And just because every other compiler does, lets stick in
> -- an identifier directive: .ident "GHC x.y.z"
> Pretty.$$ let compilerIdent = Pretty.text "GHC" Pretty.<+>
> Pretty.text cProjectVersion
> in Pretty.text ".ident" Pretty.<+>
> Pretty.doubleQuotes compilerIdent
> #endif
>
> I wonder why that is unwanted on OSX.
Here's a new version of the patch that adds the missing import and
removes the #ifdef hackery that requires the import to be absent on
Darwin and present on all other systems.
I've test that this compiles on both Linux and OSX. Ben may know
of some other reason why that chunk of code is not wanted on OSX.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Cvs-ghc
mailing list