On Mon, Nov 09, 2009 at 10:58:24AM +0000, Simon Marlow wrote:
> [Some rules for booting from hc files
> Matthias Kilian <[email protected]>**20091108110827
>  Ignore-this: bf6a3f7db25010b2de013f98377cbd92
> ] hunk ./rules/cmm-suffix-rules.mk 51
> 
>  endif
> 
> +## For booting from .hc files.
> +$1/$2/build/%.$$($3_osuf) : $1/%.hc
> +     "$$(MKDIRHIER)" $$(dir $$@)
> +     "$$(CC)" $$($1_$2_$3_ALL_CC_OPTS) -Iincludes -x c -c $$< -o $$@
> +
> +## And why is this sprinkled all across the tree? Grrr.
> +$1/$2/build/%.$$($3_osuf) : $1/$2/build/%.hc
> +     "$$(MKDIRHIER)" $$(dir $$@)
> +     "$$(CC)" $$($1_$2_$3_ALL_CC_OPTS) -Iincludes -x c -c $$< -o $$@
> +
>  endif
> 
> I'm sure this isn't right.  cmm-suffix-rules.mk is for rules for 
> building .cmm files.  Also, in hs-suffix-rules-srcdir.mk we already have:

Ok, I had a look. The rules were needed for rts/dist/build/Apply.o
(from rts/Apply.hc) and rts/dist/build/AutoApply.o (from
rts/dist/build/AutoApply.hc).

The rules in hs-suffix-rules-srcdir.mk didn't get pulled in by
rts/ghc.mk. I'll retry with adding hs-suffix-rules-srcdir to it.

Ciao,
        Kili

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to