Ticket #4821: cmm-suffix-rules.mk.diff
| File cmm-suffix-rules.mk.diff, 1.6 KB (added by gwright, 3 years ago) |
|---|
-
cmm-suffix-rules.mk
old new 22 22 23 23 ifneq "$$(BootingFromHc)" "YES" 24 24 25 # Below is an unfortunate hack. Expliciting invoking the preprocessor 26 # breaks the delicate option invocation of the default case. Passing 27 # "-traditional" as an argument breaks building .cmm files, because .cmm 28 # files need to have comments stripped out. However, the "-traditional" 29 # argument is required in most other cases. So it is filtered out. 30 25 31 $1/$2/build/%.$$($3_way_)o : $1/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. 26 "$$($1_$2_HC)" $$( $1_$2_$3_MOST_HC_OPTS) -c $$< -o $$@32 "$$($1_$2_HC)" $$(filter-out -optP-traditional,$$($1_$2_$3_MOST_HC_OPTS)) -c $$< -o $$@ 27 33 28 34 $1/$2/build/%.$$($3_way_)o : $1/$2/build/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. 29 "$$($1_$2_HC)" $$( $1_$2_$3_MOST_HC_OPTS) -c $$< -o $$@35 "$$($1_$2_HC)" $$(filter-out -optP-traditional,$$($1_$2_$3_MOST_HC_OPTS)) -c $$< -o $$@ 30 36 31 37 $1/$2/build/%.$$($3_way_)hc : $1/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. 32 "$$($1_$2_HC)" $$( $1_$2_$3_MOST_HC_OPTS) -C $$< -o $$@38 "$$($1_$2_HC)" $$(filter-out -optP-traditional,$$($1_$2_$3_MOST_HC_OPTS)) -C $$< -o $$@ 33 39 34 40 $1/$2/build/%.$$($3_way_)hc : $1/$2/build/%.cmm $$(rts_H_FILES) $$($1_$2_HC_DEP) | $$$$(dir $$$$@)/. 35 "$$($1_$2_HC)" $$( $1_$2_$3_MOST_HC_OPTS) -C $$< -o $$@41 "$$($1_$2_HC)" $$(filter-out -optP-traditional,$$($1_$2_$3_MOST_HC_OPTS)) -C $$< -o $$@ 36 42 37 43 # XXX 38 44 # When we started using "| $$$$(dir $$$$@)/." for directory deps, these
