GHC driver behaviour switch

kyra kyra at veernet.ru
Thu Jun 22 11:14:10 EDT 2006


Duncan Coutts wrote:
> On Thu, 2006-06-22 at 17:54 +0300, kyra wrote:
>   
>> With GHC 6.4.x I was able to use a ghc driver to compile .cpp sources. 
>> Now, with GHC HEAD I cannot. GHC HEAD now ALWAYS enforces "treat as .c" 
>> option.
>>     
>
> Just wondering, you're using ghc to compile C++ sources? Is there any
> reason for doing that rather than using the C++ compiler directly?
>
> Duncan
The first and foremost reason - Cabal build infrastructure.

I just put all my C++ sources in a "c-sources" section of my project. 
That's all.

Kyra


More information about the Glasgow-haskell-users mailing list