X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fsuffix.mk;h=a975c5d83348215207469118c344d778d38eacb4;hb=441b3d01ed9d1a98fb79b0a6dbdd1d3aa543cc6a;hp=fd3b6c4130ab8ffaf19fd858cb772e812ae4fc1d;hpb=87bf5c65a7b9dec4a753960a587ccfce9215a6a1;p=ghc-hetmet.git diff --git a/mk/suffix.mk b/mk/suffix.mk index fd3b6c4..a975c5d 100644 --- a/mk/suffix.mk +++ b/mk/suffix.mk @@ -328,11 +328,9 @@ endif #----------------------------------------------------------------------------- # Preprocessor suffix rule -# We're careful to remove cpp-droppings from the generated file; things like -# '#line' pragmas. But we also leave in #include directives, because these -# are likely to be intentional (perhaps the file is going to be CPP'd again - -# this is used by ghc/compiler/parser/Parser.y.pp). +# Note use of -P option to prevent #line pragmas being left in the CPP +# output. % : %.pp @$(RM) $@ - $(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#[^i]/d' > $@ + $(CPP) $(RAWCPP_FLAGS) -P $(CPP_OPTS) -x c $< > $@