ruby-changes:53766
From: nobu <ko1@a...>
Date: Mon, 26 Nov 2018 12:47:52 +0900 (JST)
Subject: [ruby-changes:53766] nobu:r65983 (trunk): common.mk: simplify for ruby.imp
nobu 2018-11-26 12:47:47 +0900 (Mon, 26 Nov 2018) New Revision: 65983 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65983 Log: common.mk: simplify for ruby.imp * common.mk (ruby.imp): extract the first word on the next lines of MJIT_FUNC_EXPORTED, regardless the prefix. duplicate symbols will be removed by `sort -u`. Modified files: trunk/common.mk Index: common.mk =================================================================== --- common.mk (revision 65982) +++ common.mk (revision 65983) @@ -347,8 +347,8 @@ ruby.imp: $(COMMONOBJS) https://github.com/ruby/ruby/blob/trunk/common.mk#L347 $(Q){ \ $(NM) -Pgp $(COMMONOBJS) | \ awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^$(SYMBOL_PREFIX)(Init_|InitVM_|ruby_static_id_|.*_threadptr_|rb_ec_)|^\./{print $$1}'; \ - ($(CHDIR) $(srcdir) && for filename in cont.c gc.c thread*c vm*.c; do for linenum in `grep -n -h ^MJIT_FUNC_EXPORTED $${filename} | cut -f 1 -d :`; do sed -n "$${linenum},`expr $${linenum} + 1` p" $${filename}; done; done) | \ - grep -e ^rb_ec_ -e ^rb_threadptr_ | sed 's/^\(rb_[a-zA-Z_0-9]*\).*/$(SYMBOL_PREFIX)\1/'; \ + ($(CHDIR) $(srcdir) && \ + exec sed -n '/^MJIT_FUNC_EXPORTED/!d;N;s/.*\n\(rb_[a-zA-Z_0-9]*\).*/$(SYMBOL_PREFIX)\1/p' cont.c gc.c thread*c vm*.c) \ } | \ sort -u -o $@ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/