ripper.c should have #line "ripper.c"
, not #line "parse.c"
The order of sed commands in Makefile of ripper was wrong: it tries to replace `y.tab.c` with `ripper.c`, but before that, ytab.sed replaced `y.tab.c` with `parse.c`, which led to a wrong result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
52de826096
commit
41e800f6a8
@ -12,7 +12,7 @@ ripper.o: ripper.c
|
||||
.y.c:
|
||||
$(ECHO) compiling compiler $<
|
||||
$(Q) $(BISON) -t -v -oy.tab.c $<
|
||||
$(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
|
||||
$(Q) sed -e "/^#/s!y\.tab\.c!$@!" -f $(top_srcdir)/tool/ytab.sed y.tab.c > $@
|
||||
@$(RM) y.tab.c
|
||||
|
||||
all: check
|
||||
|
Loading…
x
Reference in New Issue
Block a user