ruby-changes:44441
From: nobu <ko1@a...>
Date: Fri, 28 Oct 2016 23:22:40 +0900 (JST)
Subject: [ruby-changes:44441] nobu:r56514 (trunk): enc/depend: extract transcode_tblgen
nobu 2016-10-28 23:22:34 +0900 (Fri, 28 Oct 2016) New Revision: 56514 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56514 Log: enc/depend: extract transcode_tblgen * enc/depend: extract transcode_tblgen method calls for libraries loaded by dynamically generated names, in single_byte.trans. Modified files: trunk/ChangeLog trunk/enc/depend Index: ChangeLog =================================================================== --- ChangeLog (revision 56513) +++ ChangeLog (revision 56514) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Oct 28 23:22:32 2016 Nobuyoshi Nakada <nobu@r...> + + * enc/depend: extract transcode_tblgen method calls for libraries + loaded by dynamically generated names, in single_byte.trans. + Fri Oct 28 16:05:03 2016 Nobuyoshi Nakada <nobu@r...> * insns.def (opt_case_dispatch): extract float value only if the Index: enc/depend =================================================================== --- enc/depend (revision 56513) +++ enc/depend (revision 56514) @@ -108,7 +108,11 @@ enc/<%=e%>.$(OBJEXT): <%=deps.map {|n| r https://github.com/ruby/ruby/blob/trunk/enc/depend#L108 % src = "#{e}.trans" <%=transvpath % "#{e}.c"%>: <%= transvpath % "#{e}.trans"%> -% src = [*IO.read(File.join($srcdir, "trans", src)).scan(/^\s*require\s+[\'\"]([^\'\"]*)/).flatten.map{|c|c+".rb"}] +% trans = IO.read(File.join($srcdir, "trans", src)) +% src = trans.scan(/^\s*require\s+[\'\"]([^\'\"]*)/).flatten.map{|c|c+".rb"} +% if src.empty? +% src = trans.scan(/^\s*transcode_tblgen_\w+\s+[\'\"]([^\'\"]*)/).flatten.map{|c|c+"-tbl.rb"} +% end <%=transvpath % "#{e}.c"%>: <%= src.map {|s| transvpath % "#{s}"}.join(" ")%> $(srcdir)/tool/transcode-tblgen.rb % end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/