Comment out some unnecessary makefile rules
authorIan Lynagh <igloo@earth.li>
Mon, 5 Oct 2009 21:38:43 +0000 (21:38 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 5 Oct 2009 21:38:43 +0000 (21:38 +0000)
Since we started using "| $$$$(dir $$$$@)/." they've started causing
problems for unknown reasons.

rules/cmm-suffix-rules.mk

index b806414..40fc7d1 100644 (file)
@@ -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