ruby-changes:46666
From: nobu <ko1@a...>
Date: Fri, 19 May 2017 00:06:53 +0900 (JST)
Subject: [ruby-changes:46666] nobu:r58781 (trunk): common.mk: path in parse.c
nobu 2017-05-19 00:06:47 +0900 (Fri, 19 May 2017) New Revision: 58781 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58781 Log: common.mk: path in parse.c * common.mk (parse.c): replace source file name in #line pragmas with the path in the source directory, so that binary utilities, e.g. gcov, can find it. Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 58780) +++ common.mk (revision 58781) @@ -764,7 +764,7 @@ PHONY: https://github.com/ruby/ruby/blob/trunk/common.mk#L764 $(Q)$(BASERUBY) $(srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ --vpath=$(VPATH) id.h $(SRC_FILE) > parse.tmp.y $(Q)$(YACC) -d $(YFLAGS) -o y.tab.c parse.tmp.y $(Q)$(RM) parse.tmp.y - $(Q)sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!parse\.tmp\.[iy]!parse.y!" -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new + $(Q)sed -f $(srcdir)/tool/ytab.sed -e "/^#/s|parse\.tmp\.[iy]|$(SRC_FILE)|" -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new $(Q)$(MV) $@.new $@ $(Q)sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse.*\.y/d" y.tab.h > $(@:.c=.h) $(Q)$(RM) y.tab.c y.tab.h -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/