projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2004-02-04 10:00:43 by simonmar]
[ghc-hetmet.git]
/
mk
/
suffix.mk
diff --git
a/mk/suffix.mk
b/mk/suffix.mk
index
3fddbd8
..
a975c5d
100644
(file)
--- a/
mk/suffix.mk
+++ b/
mk/suffix.mk
@@
-328,6
+328,9
@@
endif
#-----------------------------------------------------------------------------
# Preprocessor suffix rule
#-----------------------------------------------------------------------------
# Preprocessor suffix rule
+# Note use of -P option to prevent #line pragmas being left in the CPP
+# output.
+
% : %.pp
@$(RM) $@
% : %.pp
@$(RM) $@
- $(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@
+ $(CPP) $(RAWCPP_FLAGS) -P $(CPP_OPTS) -x c $< > $@