
18 Jul
2005
18 Jul
'05
11:51 a.m.
On 18 July 2005 16:03, Dinko Tenev wrote:
On 7/18/05, Simon Marlow
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