From 50042de75d96cd00bc22565a5d471033793ee1ce Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 24 Feb 2018 02:58:41 +0000 Subject: Judge ERB version not RUBY_VERSION but ERB.version On cross compilation, ruby command uses fake RUBY_VERSION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/transcode-tblgen.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/transcode-tblgen.rb') diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index 6a896ad392..4e829314b2 100644 --- a/tool/transcode-tblgen.rb +++ b/tool/transcode-tblgen.rb @@ -1078,7 +1078,7 @@ if __FILE__ == $0 end libs1 = $".dup - if RUBY_VERSION >= '2.6' + if ERB.version[/\d+\.\d+/] >= '2.2' erb = ERB.new(src, trim_mode: '%') else erb = ERB.new(src, nil, '%') -- cgit v1.2.3