projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568d3f4
)
[project @ 2004-01-09 12:36:54 by simonmar]
author
simonmar
<unknown>
Fri, 9 Jan 2004 12:36:54 +0000
(12:36 +0000)
committer
simonmar
<unknown>
Fri, 9 Jan 2004 12:36:54 +0000
(12:36 +0000)
ooh, I didn't know about gcc's -P option. Use it instead of hacky sed
script in .pp suffix rule.
mk/suffix.mk
patch
|
blob
|
history
diff --git
a/mk/suffix.mk
b/mk/suffix.mk
index
fd3b6c4
..
4da8fa9
100644
(file)
--- a/
mk/suffix.mk
+++ b/
mk/suffix.mk
@@
-335,4
+335,4
@@
endif
% : %.pp
@$(RM) $@
- $(CPP) $(RAWCPP_FLAGS) $(CPP_OPTS) -x c $< | $(SED) -e '/^#[^i]/d' > $@
+ $(CPP) $(RAWCPP_FLAGS) -P $(CPP_OPTS) -x c $< > $@