Problem building GHC

Simon Marlow simonmar at microsoft.com
Mon Jul 18 11:51:16 EDT 2005


On 18 July 2005 16:03, Dinko Tenev wrote:

> On 7/18/05, Simon Marlow <simonmar at microsoft.com> wrote:
>> Two reasons:  one, -O implies -fvia-C and two, -keep-hc-files also
>> implies -fvia-C (because otherwise you don't get any .hc files). 
>> You'll need to modify the definition of GhcLibHcOpts in build.mk to
>> put -fasm after -O, and also to remove -keep-hc-files.
> 
> I'll try this tonight, thanks.
> 
> BTW, am I the only one to find it alarming that GHC would allow
> conflicting options to override one another without any warning? :)

The GHC command-line isn't declarative, it's imperative.  Options are
processed left-to-right.

That's the general rule, anyway.  It would be an interesting exercise to
specify the GHC command-line semantics, or better still, redesign it :)

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list