GHC driver behaviour switch
Simon Marlow
simonmarhaskell at gmail.com
Thu Jun 22 11:08:54 EDT 2006
kyra wrote:
> GHC HEAD:
>
> SysTools.runCc dflags (
> -- force the C compiler to interpret this file as C when
> -- compiling .hc files, by adding the -x c option.
> -- Also useful for plain .c files, just in case GHC saw a
> -- -x c option.
> [ SysTools.Option "-x", SysTools.Option "c"] ++ ...
>
> This completely breaks my build infrastructure. Could it be reversed?
The reason for this change is that you can now say
$ ghc -x c foo.wibble -c
and have foo.wibble treated as a .c file by GHC.
To fix this properly we should have a C++ compiler phase in
DriverPipeline, it wouldn't be too hard. Care to submit a bug report
with this info?
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list