From: Ian Lynagh Date: Mon, 5 Oct 2009 21:38:43 +0000 (+0000) Subject: Comment out some unnecessary makefile rules X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=b5384cdf7f1d0e6c326bb939b85acd137b0a589b Comment out some unnecessary makefile rules Since we started using "| $$$$(dir $$$$@)/." they've started causing problems for unknown reasons. --- diff --git a/rules/cmm-suffix-rules.mk b/rules/cmm-suffix-rules.mk index b806414..40fc7d1 100644 --- a/rules/cmm-suffix-rules.mk +++ b/rules/cmm-suffix-rules.mk @@ -34,11 +34,19 @@ $1/$2/build/%.$$($3_way_)hc : $1/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(d $1/$2/build/%.$$($3_way_)hc : $1/$2/build/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. "$$($1_$2_HC)" $$($1_$2_$3_MOST_HC_OPTS) -C $$< -o $$@ -$1/$2/build/%.$$($3_way_)s : $1/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. - "$$($1_$2_HC)" $$($1_$2_$3_MOST_HC_OPTS) -S $$< -o $$@ - -$1/$2/build/%.$$($3_way_)s : $1/$2/build/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. - "$$($1_$2_HC)" $$($1_$2_$3_MOST_HC_OPTS) -S $$< -o $$@ +# XXX +# When we started using "| $$$$(dir $$$$@)/." for directory deps, these +# rules started getting used when object splitting is enabled for some +# reason. But they fail with +# **splitmangle**: openBinaryFile: does not exist (No such file or directory) +# so for now they're commented out. They aren't needed, as we can always +# go directly to .o files. +# +# $1/$2/build/%.$$($3_way_)s : $1/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. +# "$$($1_$2_HC)" $$($1_$2_$3_MOST_HC_OPTS) -S $$< -o $$@ +# +# $1/$2/build/%.$$($3_way_)s : $1/$2/build/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. +# "$$($1_$2_HC)" $$($1_$2_$3_MOST_HC_OPTS) -S $$< -o $$@ endif