summaryrefslogtreecommitdiff
path: root/gcc/cp/Make-lang.in
diff options
context:
space:
mode:
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-13 12:33:42 +0000
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-13 12:33:42 +0000
commit8ed67048c2e35dd8e32c51512dcca2cb999bcd68 (patch)
treeb940f755110b56881ac803df479ecd25f15f0bdd /gcc/cp/Make-lang.in
parent4b20b68c523a41c9101fd67fa2486900c2c48809 (diff)
downloadgcc-8ed67048c2e35dd8e32c51512dcca2cb999bcd68.tar.gz
* config/t-darwin (build/slashify1): Harden against rebuilds.
* config/slashify.c: Nix parms to quite the build. cp: (build/slashify): Harden against rebuilds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170107 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/Make-lang.in')
-rw-r--r--gcc/cp/Make-lang.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in
index 993c510ac31..831c36ac787 100644
--- a/gcc/cp/Make-lang.in
+++ b/gcc/cp/Make-lang.in
@@ -333,15 +333,17 @@ cp/parser.o: $(objdir)/objcp/plugin/parser.h $(srcdir)/objcp/plugin/parser.c \
cp/lex.o: $(objdir)/objcp/plugin/lex.h c-family/c-objc.h
-build/slashify:: $(srcdir)/config/slashify.c
- $(COMPILER_FOR_BUILD) $(srcdir)/config/slashify.c -o $@
+# Would like to get rid of the #, but we always rebuild the checksum
+# if we do
+build/slashify: # $(srcdir)/config/slashify.c
+ $(COMPILER_FOR_BUILD) $(BUILD_COMPILERFLAGS) $(BUILD_CPPFLAGS) $(srcdir)/config/slashify.c -o $@
-$(objdir)/objcp/plugin/parser.h: $(srcdir)/objcp/plugin/parser.h | build/slashify
+$(objdir)/objcp/plugin/parser.h: $(srcdir)/objcp/plugin/parser.h build/slashify
test -d objcp || mkdir objcp
test -d objcp/plugin || mkdir objcp/plugin
build/slashify < $< > $@
-$(objdir)/objcp/plugin/lex.h: $(srcdir)/objcp/plugin/lex.h | build/slashify
+$(objdir)/objcp/plugin/lex.h: $(srcdir)/objcp/plugin/lex.h build/slashify
test -d objcp || mkdir objcp
test -d objcp/plugin || mkdir objcp/plugin
build/slashify < $< > $@